This commit is contained in:
Timur Ercan
2023-01-10 14:50:44 +01:00
parent aaad9fc0cd
commit 93d96c3768

View File

@ -8,7 +8,6 @@ declare global {
const prisma = globalThis.client || new PrismaClient();
// Save for reuse in dev environment to avoid many client instances in dev where restart and reloads
if (process.env.NODE_ENV !== "production") {
globalThis.client = prisma;
}