Skip to content

Commit

Permalink
limit connections
Browse files Browse the repository at this point in the history
  • Loading branch information
matmut7 committed Oct 10, 2024
1 parent be02016 commit 7fe2c8d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ generator client {

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}

model Commission {
Expand Down
1 change: 1 addition & 0 deletions src/lib/prismaClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ declare global {
export const client =
globalThis.prismaClient ??
new PrismaClient({
datasourceUrl: process.env.DATABASE_URL + "&connection_limit=5",
log: ["info", "warn", "error"],
});

Expand Down

0 comments on commit 7fe2c8d

Please sign in to comment.