Skip to content

Commit

Permalink
chore: add POSTGRESQL_ADDON_URI connection
Browse files Browse the repository at this point in the history
  • Loading branch information
juliamrch committed Jun 10, 2024
1 parent a2b6884 commit 5ef5f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ CREATE TABLE IF NOT EXISTS values (
module.exports = {
connectDB : function() {
pool = new pg.Pool({
connectionString: process.env.POSTGRESQL_ADDON_DIRECT_URI,
connectionString: process.env.POSTGRESQL_ADDON_DIRECT_URI || process.env.POSTGRESQL_ADDON_URI,
})
pool.query(createTableText, [], (err, res) => {
if (err) {
Expand Down

0 comments on commit 5ef5f3b

Please sign in to comment.