124_webcalibre2/prisma.config.ts
2026-01-16 16:22:00 +11:00

13 lines
No EOL
337 B
TypeScript

import { config } from "dotenv";
config({ path: ".env.local" });
import { defineConfig } from "prisma/config";
export default defineConfig({
schema: "prisma/schema.prisma",
datasource: {
// This is now the ONLY place where the DB connection string is defined
// prisma.config.ts
url: process.env.DATABASE_URL!,
},
});