fix: change cookie to env variable

This commit is contained in:
NunoSempere 2022-02-12 16:09:26 -05:00
parent 6a257c2152
commit 29c51a13ed

View File

@ -12,7 +12,7 @@ const tableWhiteList = [...createFullName("latest", tableNamesWhitelist), ...cre
/* Postgres database connection code */ /* 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") // process.env.DATABASE_URL || getSecret("heroku-postgres")
const readWritePool = new Pool({ const readWritePool = new Pool({
connectionString: databaseURL, connectionString: databaseURL,