diff --git a/_official-blog-tutorial/app/db.server.ts b/_official-blog-tutorial/app/db.server.ts index ac5701fa..a76df7ad 100644 --- a/_official-blog-tutorial/app/db.server.ts +++ b/_official-blog-tutorial/app/db.server.ts @@ -3,7 +3,4 @@ import { 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-imported -const prisma = singleton("prisma", () => new PrismaClient()); -prisma.$connect(); - -export { prisma }; +export const prisma = singleton("prisma", () => new PrismaClient());