Skip to content

Commit 5ef5f3b

Browse files
committed
chore: add POSTGRESQL_ADDON_URI connection
1 parent a2b6884 commit 5ef5f3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

db.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ CREATE TABLE IF NOT EXISTS values (
1313
module.exports = {
1414
connectDB : function() {
1515
pool = new pg.Pool({
16-
connectionString: process.env.POSTGRESQL_ADDON_DIRECT_URI,
16+
connectionString: process.env.POSTGRESQL_ADDON_DIRECT_URI || process.env.POSTGRESQL_ADDON_URI,
1717
})
1818
pool.query(createTableText, [], (err, res) => {
1919
if (err) {

0 commit comments

Comments
 (0)