We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 371501e commit 4fa485eCopy full SHA for 4fa485e
_official-jokes/app/utils/db.server.ts
@@ -3,6 +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 db = singleton("prisma", () => new PrismaClient());
7
-
8
-export { db };
+export const db = singleton("prisma", () => new PrismaClient());
0 commit comments