fix: prisma v7 config
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 4s

This commit is contained in:
HAM 2026-01-12 13:39:04 +07:00
parent cef26278ba
commit e54f62a5b3
2 changed files with 8 additions and 0 deletions

7
prisma.config.ts Normal file
View file

@ -0,0 +1,7 @@
import { defineConfig } from "prisma/config";
export default defineConfig({
migrations: {
path: "prisma/migrations",
},
});

View file

@ -4,6 +4,7 @@ import kyselyExtension from "prisma-extension-kysely";
import type { DB } from "./generated/kysely/types"; import type { DB } from "./generated/kysely/types";
const prisma = new PrismaClient({ const prisma = new PrismaClient({
datasourceUrl: process.env.DATABASE_URL,
errorFormat: process.env.NODE_ENV === "production" ? "minimal" : "pretty", errorFormat: process.env.NODE_ENV === "production" ? "minimal" : "pretty",
}).$extends( }).$extends(
kyselyExtension({ kyselyExtension({