first commit

This commit is contained in:
2026-06-14 16:10:40 +03:00
parent 8abc26cf2b
commit e2c51d3b9e
16 changed files with 2272 additions and 26 deletions
+9
View File
@@ -0,0 +1,9 @@
import { PrismaClient } from '@prisma/client'
const globalForPrisma = globalThis as unknown as {
prisma: PrismaClient | undefined
}
export const db = globalForPrisma.prisma ?? new PrismaClient()
if (process.env.NODE_ENV !== 'production') globalForPrisma.prisma = db