Spaces:
Running
Running
File size: 259 Bytes
63c7991 |
1 2 3 4 5 6 7 8 9 10 11 |
import { PrismaClient } from "@prisma/client";
declare global {
var prisma: PrismaClient | undefined;
}
const client = globalThis.prisma || new PrismaClient();
if (process.env.NODE_ENV !== "production") globalThis.prisma = client;
export default client;
|