mirror of
https://github.com/dsoaress/link-free.git
synced 2026-11-29 13:34:44 +00:00
feat: add prisma
This commit is contained in:
12 files changed
+341
-7
No files matched your search
@@ -0,0 +1,9 @@
|
||||
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
|
||||
Reference in new issue
Block a user