added prisma + nextAuth

This commit is contained in:
PxlLoewe
2025-01-18 00:36:10 +01:00
parent 0344e1b51a
commit 2f8424e56c
35 changed files with 12124 additions and 125 deletions

View File

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