mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-10 22:01:16 +00:00
fix: use standard @prisma/client imports instead of custom output path
The custom generator output to src/generated/prisma caused persistent Turbopack module resolution failures in CI. Switch to the standard @prisma/client import path which all bundlers resolve correctly. - Remove custom output from prisma schema generator - Update all imports from ../generated/prisma to @prisma/client - Add postinstall script to auto-run prisma generate after npm ci - Remove generated files from git (no longer needed in source tree) - Simplify CI workflow (remove verify step and --webpack workaround) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@@ -41,23 +41,11 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Generate Prisma client
|
||||
run: npx prisma generate
|
||||
|
||||
- name: Run database migrations
|
||||
run: npx prisma migrate deploy
|
||||
|
||||
- name: Verify generated files exist
|
||||
run: |
|
||||
echo "=== src/generated/prisma contents ==="
|
||||
ls -la src/generated/prisma/
|
||||
echo "=== index.ts content ==="
|
||||
cat src/generated/prisma/index.ts
|
||||
echo "=== client.ts first 3 lines ==="
|
||||
head -3 src/generated/prisma/client.ts
|
||||
|
||||
- name: Build (includes type check and lint)
|
||||
run: npx next build --webpack
|
||||
run: npm run build
|
||||
env:
|
||||
AUTH_SECRET: ci-test-secret-not-for-production
|
||||
AUTH_TRUST_HOST: "true"
|
||||
|
||||
Reference in New Issue
Block a user