mirror of
https://github.com/dsoaress/link-free.git
synced 2026-11-24 03:48:38 +00:00
10 lines
231 B
TypeScript
10 lines
231 B
TypeScript
import { PrismaClient } from '@prisma/client'
|
|
|
|
declare global {
|
|
var prisma: PrismaClient | undefined
|
|
}
|
|
|
|
export const prisma = global.prisma || new PrismaClient()
|
|
|
|
if (process.env.NODE_ENV !== 'production') global.prisma = prisma
|