Kuma/prisma.config.ts
Rajpreet0 12b2607326 fix: use process.env directly in prisma.config.ts
Prisma's env() config helper throws synchronously during config
load if the variable isn't yet visible, which crashes on Vercel
before dotenv/config or the platform's injected env vars take
effect (known Prisma 6.19+/7 issue). process.env access defers
validation to the actual command instead.
2026-07-29 17:26:58 +02:00

14 lines
309 B
TypeScript

import { defineConfig } from "prisma/config";
import "dotenv/config";
export default defineConfig({
schema: "prisma/schema.prisma",
migrations: {
path: "prisma/migrations",
},
engine: "classic",
datasource: {
url: process.env.DATABASE_URL!,
directUrl: process.env.DIRECT_URL!,
},
});