Skip to content

Commit

Permalink
use pgbouncer
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd committed Sep 3, 2024
1 parent a370dc5 commit 801f2e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import postgres from "postgres";

const connectionString =
process.env.DB_URL ??
`postgresql://${process.env.PSQL_USERNAME}:${process.env.PSQL_PW}@${process.env.PSQL_URL}:6432/cle37p03g00dhd6lff4ch90qw`;
`postgresql://${process.env.PSQL_USERNAME}:${process.env.PSQL_PW}@${process.env.PSQL_URL}:6433/cle37p03g00dhd6lff4ch90qw`;

const sql = postgres(connectionString, { idle_timeout: 200, max_lifetime: 60 * 5, max: 10 });

Expand Down

0 comments on commit 801f2e3

Please sign in to comment.