import env from 'dotenv';

env.config();

const config = {
  production: {
    database: process.env.DB_URL_PRODUCTION
  },
  default: {
    database: process.env.DB_URL_DEVELOPMENT
  }
};
const get = (nodeEnv) => {
  return config[nodeEnv] || config.default;
};

export default get;

@@ -111,16 +111,41 @@
 ODUCTION
+,%0A    dialect: 'postgres'
 %0A  %7D,%0A  
@@ -199,16 +199,41 @@
 ELOPMENT
+,%0A    dialect: 'postgres'
 %0A  %7D%0A%7D;%0A

add dialect property in sequelize config file