We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa8994f commit 03a3ea6Copy full SHA for 03a3ea6
api/db/index.ts
@@ -12,10 +12,10 @@ export function getPool() {
12
host: process.env.DB_HOST,
13
database: process.env.DB_NAME,
14
password: process.env.DB_PASSWORD,
15
- port: parseInt(process.env.DB_PORT),
16
max: 5, // Maximum number of connections in the pool
17
idleTimeoutMillis: 30000, // Close idle connections after 30 seconds
18
connectionTimeoutMillis: 2000, // How long to wait for a connection from the pool
+ ssl: true,
19
})
20
}
21
return pool
0 commit comments