mirror of
https://github.com/formbricks/formbricks.git
synced 2026-03-20 17:31:27 -05:00
Move repository into a monorepo with turborepo and pnpm. This is a big change in the way the code is organized, used and deployed.
10 lines
235 B
TypeScript
10 lines
235 B
TypeScript
import { PrismaClient } from "@prisma/client";
|
|
|
|
declare global {
|
|
var prisma: PrismaClient | undefined;
|
|
}
|
|
|
|
export const prisma = global.prisma || new PrismaClient();
|
|
|
|
if (process.env.NODE_ENV !== "production") global.prisma = prisma;
|