fix: prisma v7 config
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 4s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 4s
This commit is contained in:
parent
cef26278ba
commit
e54f62a5b3
2 changed files with 8 additions and 0 deletions
7
prisma.config.ts
Normal file
7
prisma.config.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { defineConfig } from "prisma/config";
|
||||
|
||||
export default defineConfig({
|
||||
migrations: {
|
||||
path: "prisma/migrations",
|
||||
},
|
||||
});
|
||||
|
|
@ -4,6 +4,7 @@ import kyselyExtension from "prisma-extension-kysely";
|
|||
import type { DB } from "./generated/kysely/types";
|
||||
|
||||
const prisma = new PrismaClient({
|
||||
datasourceUrl: process.env.DATABASE_URL,
|
||||
errorFormat: process.env.NODE_ENV === "production" ? "minimal" : "pretty",
|
||||
}).$extends(
|
||||
kyselyExtension({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue