mirror of
https://github.com/Since-3/Kuma.git
synced 2026-10-12 21:41:17 +00:00
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.
14 lines
309 B
TypeScript
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!,
|
|
},
|
|
});
|