Object.assign (which is used for merging configs) allows only for shallow merges. As a result mongo options defined in "all" are ignored.
The issue can be easily shown by adding
console.log(config.all.mongo.options)
after
module.exports = Object.assign(config.all, config[config.all.env])
Object.assign (which is used for merging configs) allows only for shallow merges. As a result mongo options defined in "all" are ignored.
The issue can be easily shown by adding
console.log(config.all.mongo.options)after
module.exports = Object.assign(config.all, config[config.all.env])