Files
sign/packages/prisma/index.ts
2023-01-09 17:10:36 +01:00

10 lines
225 B
TypeScript

import { PrismaClient } from "@prisma/client";
declare global {
var prismaClientSingleton: PrismaClient | undefined;
}
export const prisma = globalThis.prismaClientSingleton || new PrismaClient();
export default prisma;