Skip to content

Instantly share code, notes, and snippets.

@artemis15
Created September 16, 2019 19:05
Show Gist options
  • Save artemis15/d44acf1d1ecb5e109f7510951ad3d72c to your computer and use it in GitHub Desktop.
Save artemis15/d44acf1d1ecb5e109f7510951ad3d72c to your computer and use it in GitHub Desktop.
Hold local and envirpnment configuration
const _ = require('lodash');
const env = process.env.Node_ENV || 'local';
const envConfig = require('./' + env);
let defaultConfig = {
env: env
};
module.exports = _.merge(defaultConfig, envConfig);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment