Skip to content

Options are not merged properly #169

@kbzowski

Description

@kbzowski

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])

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions