This commit is contained in:
el 2025-04-02 00:10:02 +02:00
commit 73ea49c3fe
16 changed files with 2746 additions and 0 deletions

View file

@ -0,0 +1,9 @@
import { PrismaClient } from '@prisma/client';
const globalForPrisma = globalThis as unknown as {
prisma: PrismaClient | undefined;
};
export const prisma = globalForPrisma.prisma ?? new PrismaClient();
if (process.env.NODE_ENV !== 'production') globalForPrisma.prisma = prisma;