From 31b20bd0280484c036f66f53ae52fb2c7ca6e5b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Sat, 26 Aug 2023 01:05:01 +0200 Subject: [PATCH] chore(_official-blog-tutorial): remove explicit DB connection --- _official-blog-tutorial/app/db.server.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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());