Skip to content

Commit 31b20bd

Browse files
committed
chore(_official-blog-tutorial): remove explicit DB connection
1 parent 4fa485e commit 31b20bd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

_official-blog-tutorial/app/db.server.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,4 @@ import { PrismaClient } from "@prisma/client";
33
import { singleton } from "./singleton.server";
44

55
// Hard-code a unique key, so we can look up the client when this module gets re-imported
6-
const prisma = singleton("prisma", () => new PrismaClient());
7-
prisma.$connect();
8-
9-
export { prisma };
6+
export const prisma = singleton("prisma", () => new PrismaClient());

0 commit comments

Comments
 (0)