Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🔧 Update pool config
Luke Vella397e2a71464a
diff --git a/packages/database/src/client.ts b/packages/database/src/client.tsindex 2ef5bde32..0c85207f9 100644--- a/packages/database/src/client.ts+++ b/packages/database/src/client.ts@@ -5,7 +5,12 @@ import { PrismaClient } from "../generated/prisma/client";export type * from "../generated/prisma/client";-const pool = new Pool({ connectionString: process.env.DATABASE_URL });+const pool = new Pool({+ connectionString: process.env.DATABASE_URL,+ max: 10,+ idleTimeoutMillis: 5000,+ connectionTimeoutMillis: 10000,+});attachDatabasePool(pool);