Skip to content
Snippets Groups Projects
Unverified Commit 6375e390 authored by Emelia Smith's avatar Emelia Smith Committed by GitHub
Browse files

Fix: support both DATABASE_URL and DB_PASS (#26295)

parent bb51c067
No related branches found
No related tags found
No related merge requests found
......@@ -110,6 +110,11 @@ const pgConfigFromEnv = (env) => {
if (env.DATABASE_URL) {
baseConfig = dbUrlToConfig(env.DATABASE_URL);
// Support overriding the database password in the connection URL
if (!baseConfig.password && env.DB_PASS) {
baseConfig.password = env.DB_PASS;
}
} else {
baseConfig = pgConfigs[environment];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment