db config

This commit is contained in:
Omer Sabic 2024-06-08 15:00:11 +02:00
parent b3d7e4ee5d
commit 434cf71010

View File

@ -10,11 +10,7 @@ export let db;
export const initDb = async () => { export const initDb = async () => {
const client = new Pool({ const client = new Pool({
connectionString: env.DATABASE_URL, connectionString: env.DATABASE_URL
ssl: false,
idleTimeoutMillis: 0,
connectionTimeoutMillis: 0,
keepAlive: true
}); });
await client.connect(); await client.connect();