Created
September 16, 2019 19:05
-
-
Save artemis15/d44acf1d1ecb5e109f7510951ad3d72c to your computer and use it in GitHub Desktop.
Hold local and envirpnment configuration
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 _ = 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