Skip to content

Commit

Permalink
fix: do not preconnect to database
Browse files Browse the repository at this point in the history
By not preconnecting to the database, we are ensuring connections are only made when the prisma object is used.
  • Loading branch information
limwa committed Jun 25, 2024
1 parent d237061 commit 88eac3b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lib/server/prisma.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { PrismaClient } from "@prisma/client";

const prisma = new PrismaClient();
await prisma.$connect();
export default prisma;

0 comments on commit 88eac3b

Please sign in to comment.