We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fa485e commit 31b20bdCopy full SHA for 31b20bd
_official-blog-tutorial/app/db.server.ts
@@ -3,7 +3,4 @@ import { PrismaClient } from "@prisma/client";
3
import { singleton } from "./singleton.server";
4
5
// 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 };
+export const prisma = singleton("prisma", () => new PrismaClient());
0 commit comments