db config
This commit is contained in:
parent
b3d7e4ee5d
commit
434cf71010
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user