fix: commit generated Prisma client — Turbopack excludes gitignored paths

Turbopack skips gitignored directories during module resolution in
next build. Since src/generated/prisma was in .gitignore, the build
on CI failed with "Module not found: Can't resolve '@/generated/prisma'"
even though prisma generate created the files.

Fix: commit the generated client and remove it from .gitignore.
Run `npx prisma generate` after schema changes to update.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
xCyanGrizzly
2026-02-18 17:34:19 +01:00
parent 57ce1bffb2
commit 23e233fe02
25 changed files with 31340 additions and 2 deletions

5
.gitignore vendored
View File

@@ -42,8 +42,9 @@ yarn-error.log*
*.tsbuildinfo
next-env.d.ts
# prisma — generated client (regenerated by `prisma generate`)
/src/generated/prisma
# prisma — generated client is committed so Turbopack can resolve it
# during next build (Turbopack excludes gitignored paths from module resolution).
# Run `npx prisma generate` after schema changes to update.
# ide
.idea