Skip to content

Commit

Permalink
update dbConfig.js
Browse files Browse the repository at this point in the history
  • Loading branch information
IrynaLypnyk committed Feb 10, 2024
1 parent ccfc819 commit b4b9a40
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
16 changes: 13 additions & 3 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions server/dbConfig.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
const {Pool} = require('pg');
const itemsPool = new Pool({
connectionString: process.env.DBConfigLink,
ssl: {
rejectUnauthorized: false
}
});

module.exports = itemsPool;
const pool = new Pool({
connectionString: process.env.POSTGRES_URL ,
})

module.exports = pool;

0 comments on commit b4b9a40

Please sign in to comment.