I am currently in the process of establishing a connection to a PostgreSQL Database that I have configured on Heroku.
const { Sequelize, DataTypes, Model } = require("sequelize");
// Setting up the database configuration
const sequelize = new Sequelize({
database: "[won't display db]",
username: "[won't display username]",
password: "[won't show password]",
host: "ec2-54-221-195-148.compute-1.amazonaws.com",
port: 5432,
dialect: "postgres",
dialectOptions: {
ssl: true,
},
});
However, the output I am encountering is as follows:
SequelizeConnectionError: self signed certificate