Created
October 15, 2018 11:10
-
-
Save vinaymavi/6d5756ceb4775fe6473417ac80526c4f to your computer and use it in GitHub Desktop.
Node.js configuration management example development.config.js file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const base_config = require("./base.config"); | |
const development_config = { | |
message: "Server started with development configuration", | |
base_path: "https://developmentapi.com/" | |
}; | |
const updated_config = Object.assign(base_config,development_config); | |
module.exports = updated_config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment