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 0bf3bf6 commit 2794be1Copy full SHA for 2794be1
src/util/postgres_client.js
@@ -1498,10 +1498,13 @@ class PostgresClient extends EventEmitter {
1498
};
1499
1500
1501
- if (process.env.POSTGRES_CONNECTION_STRING_PATH) {
+ const connection_string = process.env.POSTGRES_CONNECTION_STRING ||
1502
+ fs_utils.try_read_file_sync(process.env.POSTGRES_CONNECTION_STRING_PATH);
1503
+
1504
+ if (connection_string) {
1505
/** @type {import('pg').PoolConfig} */
1506
this.new_pool_params = {
- connectionString: fs.readFileSync(process.env.POSTGRES_CONNECTION_STRING_PATH, "utf8"),
1507
+ connectionString: connection_string,
1508
...params,
1509
1510
} else {
0 commit comments