There was an error while loading. Please reload this page.
1 parent caad7b3 commit d1d4f6aCopy full SHA for d1d4f6a
1 file changed
src/db.ts
@@ -7,7 +7,7 @@ declare global {
7
8
// This is needed because in development we don't want to restart
9
// the server with every change, but we want to make sure we don't
10
-// create a new connectison to the DB with every change either.
+// create a new connection to the DB with every change either.
11
if (process.env.NODE_ENV !== "development") {
12
prismaClient = new PrismaClient();
13
prismaClient.$connect();
@@ -19,7 +19,6 @@ if (process.env.NODE_ENV !== "development") {
19
prismaClient = global.__db;
20
}
21
22
-
23
// Have to cast it manually, because webstorm can't infer it for some reason
24
// https://github.com/prisma/prisma/issues/2359#issuecomment-963340538
25
export const prisma = prismaClient;
0 commit comments