Skip to content

Instantly share code, notes, and snippets.

@vinaymavi
Created October 15, 2018 11:10
Show Gist options
  • Save vinaymavi/6d5756ceb4775fe6473417ac80526c4f to your computer and use it in GitHub Desktop.
Save vinaymavi/6d5756ceb4775fe6473417ac80526c4f to your computer and use it in GitHub Desktop.
Node.js configuration management example development.config.js file.
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