You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: simplify prisma schema sharing using native v7 multi-file schemas
* refactor: simplify prisma schema sharing using native v7 multi-file schemas
Replace combine-schemas.js-based pipeline with Prisma v7's native directory support.
Each app now has its own prisma/schema/ dir with a local schema.prisma (committed) and
copies model files from packages/db/prisma/schema/ at generate time (gitignored).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* refactor: simplify prisma schema sharing and fix Docker build
- Use native Prisma v7 multi-file schema (--schema=prisma/schema directory)
- Each app has its own prisma/schema/schema.prisma with correct generator
- generate-prisma-client-js.js creates temp dir with model files instead of combine-schemas
- Remove PoolConfig import from pg (not a direct dependency)
- Keep bun:1.2.8 for builder (compatible with workspace resolution), node:22 for production
- Restore original COPY order in Dockerfile (no node_modules restore needed)
---------
Co-authored-by: Mariano Fuentes <marfuen98@gmail.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments