Prisma postgress fix

This commit is contained in:
2025-05-20 12:10:52 +02:00
parent b14acab08f
commit 118cadefdf
24 changed files with 14500 additions and 6 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
import { PrismaClient } from "@prisma/client";
import { PrismaClient } from "~/app/generated/prisma-client";
import { withAccelerate } from '@prisma/extension-accelerate'
import { env } from "~/env";
@@ -6,7 +7,7 @@ const createPrismaClient = () =>
new PrismaClient({
log:
env.NODE_ENV === "development" ? ["query", "error", "warn"] : ["error"],
});
}).$extends(withAccelerate());
const globalForPrisma = globalThis as unknown as {
prisma: ReturnType<typeof createPrismaClient> | undefined;