8 lines
142 B
JavaScript
Raw Normal View History

2021-03-25 14:29:24 -05:00
import { PrismaClient } from '@prisma/client'
2021-09-30 10:46:58 -05:00
global.prisma ||= new PrismaClient({
log: ['warn', 'error']
2021-08-17 13:15:24 -05:00
})
2021-03-25 14:29:24 -05:00
2021-09-30 10:46:58 -05:00
export default global.prisma