// Prisma CLI config (migrate, generate). Prisma 7 doesn't load .env or read the URL from the schema. import 'dotenv/config'; import { defineConfig } from 'prisma/config'; export default defineConfig({ schema: 'prisma/schema.prisma', migrations: { path: 'prisma/migrations' }, // process.env, so `prisma generate` works on a machine with no DATABASE_URL (it never connects). datasource: { url: process.env.DATABASE_URL ?? '' }, });