mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-10 22:01:16 +00:00
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:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user