Files
metabuilder/frontends/nextjs/prisma.config.ts
copilot-swe-agent[bot] 23d01a0b11 Final code review improvements
- Use 'prisma/config' import (re-export from @prisma/config for better compatibility)
- Change workflow condition from always() to failure() for proper job triggering
- Fix migration rollback command syntax with proper schema path
- All changes verified and tested successfully

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 16:44:41 +00:00

23 lines
629 B
TypeScript

/**
* Prisma Configuration
*
* This file replaces the deprecated package.json#prisma configuration.
* See: https://www.prisma.io/docs/orm/reference/prisma-config-reference
*/
import { defineConfig } from 'prisma/config'
export default defineConfig({
// Schema is in the repo root prisma/ directory
schema: '../../prisma/schema.prisma',
migrations: {
path: '../../prisma/migrations',
},
datasource: {
// Use process.env directly to avoid errors when DATABASE_URL is not set
// (e.g., during `prisma generate` in CI where DB isn't needed)
url: process.env.DATABASE_URL ?? 'file:./dev.db',
},
})