Hi,
I have same problem witch overriding. In addition, I have set NODE_ENV.
Rest of my code.
config/env/production/database.js
const parse = require("pg-connection-string").parse;
const config = parse(process.env.DATABASE_URL);
module.exports = ({ env }) => ({
connection: {
client: "postgres",
connection: {
host: config.host,
port: config.port,
database: config.database,
user: config.user,
password: config.password,
ssl: {
rejectUnauthorized: false,
},
},
debug: false,
},
});
config/env/production/server.js
module.exports = ({ env }) => ({
url: env("https://mywebsite.herokuapp.com/"),
});
Do you have any idea?
