Something went wrong. Try again.
Something went wrong. Try again.
12345678910import { PrismaClient } from "@prisma/client";
import { singleton } from "./singleton.server";
// Hard-code a unique key, so we can look up the client when this module gets re-importedconst prisma = singleton("prisma", () => new PrismaClient());prisma.$connect();
export { prisma };