fix(db): keep db connections alive for longer to prevent issues in dev

This commit is contained in:
Waleed Latif
2025-03-05 12:57:48 -08:00
parent 1485a9e498
commit 630033b858
+2
View File
@@ -51,6 +51,8 @@ if (!isLocalStorage) {
// Disable prefetch as it is not supported for "Transaction" pool mode
const client = postgres(connectionString, {
prepare: false,
idle_timeout: 30, // Keep connections alive for 30 seconds when idle
connect_timeout: 30, // Timeout after 30 seconds when connecting
})
db = drizzle(client)
} else {