Skip to content

Commit 7a7b42a

Browse files
committed
minor fix
1 parent adb4e59 commit 7a7b42a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/config/db.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { PrismaClient } from '@prisma/client'
22

33
// Prevent multiple instances in development
4-
const globalForPrisma = global as unknown as { prisma: PrismaClient }
4+
const globalForPrisma = global || {}
55

66
const prisma = globalForPrisma.prisma || new PrismaClient({
77
log: ['query', 'error', 'warn'],

0 commit comments

Comments
 (0)