The solution ist next: const { Pool } = require('pg'); const db = new Pool({ user:'user', host: 'host', database: 'database', password: 'pass', port: 5432, //solution to render ssl ssl: true });
module.exports = db;
The solution ist next: const { Pool } = require('pg'); const db = new Pool({ user:'user', host: 'host', database: 'database', password: 'pass', port: 5432, //solution to render ssl ssl: true });
module.exports = db; //solution