Skip to content

Commit

Permalink
feat: pg conenction
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickChoDev committed Mar 30, 2024
1 parent 9885c31 commit 1b3d50e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/server/src/utils/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ function createConnectionPool() {
],
write: { host: process.env.DB_HOST || 'db' },
},
pool: {
max: 30,
idle: 10000,
},
sync: {
force: (process.env.NODE_ENV || 'development') !== 'production',
},
Expand Down

0 comments on commit 1b3d50e

Please sign in to comment.