Skip to content

Commit

Permalink
use pgpool2
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd authored Sep 3, 2024
1 parent fcd4a9f commit 2647390
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}:6433/cle37p03g00dhd6lff4ch90qw`;
`postgresql://${process.env.PSQL_USERNAME}:${process.env.PSQL_PW}@${process.env.PSQL_URL}:6432/cle37p03g00dhd6lff4ch90qw`;

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

Expand Down

0 comments on commit 2647390

Please sign in to comment.