Files
brammie15 314717ba3a
CI / build-and-test (push) Canceled after 0s
feat: move to V2
2026-10-29 11:21:52 +01:00

17 lines
506 B
TypeScript

import 'dotenv/config';
import { defineConfig } from 'prisma/config';
export default defineConfig({
schema: 'prisma/schema.prisma',
migrations: {
path: 'prisma/migrations',
seed: 'tsx prisma/seed.ts',
},
datasource: {
// Not required for generating the client, which needs no database
url: process.env.DATABASE_URL ?? '',
// Only for checking the migrations against the schema (`migrate diff --from-migrations`)
shadowDatabaseUrl: process.env.SHADOW_DATABASE_URL,
},
});