124_webcalibre2/prisma.config.ts

13 lines
337 B
TypeScript
Raw Normal View History

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
2026-01-16 05:22:00 +00:00
// prisma.config.ts
url: process.env.DATABASE_URL!,
},
});