diff --git a/src/database/pg-wrapper.js b/src/database/pg-wrapper.js index 3519108..eed98ed 100644 --- a/src/database/pg-wrapper.js +++ b/src/database/pg-wrapper.js @@ -12,7 +12,7 @@ const tableWhiteList = [...createFullName("latest", tableNamesWhitelist), ...cre /* Postgres database connection code */ -const databaseURL = getSecret("digitalocean-postgres") +const databaseURL = process.env.DIGITALOCEAN_POSTGRES || getSecret("digitalocean-postgres") // process.env.DATABASE_URL || getSecret("heroku-postgres") const readWritePool = new Pool({ connectionString: databaseURL,