diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 0e9b0fce..afcc032e 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -6,7 +6,6 @@ generator client { datasource db { provider = "postgresql" - url = env("DATABASE_URL") } model Commission { diff --git a/src/lib/prismaClient.ts b/src/lib/prismaClient.ts index b2e6f8f0..d2c6d154 100644 --- a/src/lib/prismaClient.ts +++ b/src/lib/prismaClient.ts @@ -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"], });