Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@007lva
Created November 12, 2016 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 007lva/5445ab363d640d0d23ccbd57dd7f68d1 to your computer and use it in GitHub Desktop.
Save 007lva/5445ab363d640d0d23ccbd57dd7f68d1 to your computer and use it in GitHub Desktop.
var applicationConfig = {
local: {
server: {
host: 'localhost',
port: 8889,
clientSecret: 'abcd',
callbackURL: 'def'
}
},
development: {
server: {
host: 'localhost',
port: 8889,
clientSecret: 'abcd',
callbackURL: 'def'
}
},
testing: {
server: {
host: 'localhost',
port: 8889,
clientSecret: 'abcd',
callbackURL: 'def'
}
},
production: {
server: {
host: 'localhost',
port: 8889,
clientSecret: 'abcd',
callbackURL: 'def'
}
},
};
if (typeof(global) === 'object' && typeof(window) === 'undefined') {
module.exports = applicationConfig[process.env.NODE_ENV || 'SOME_ENVIRONMENT'];
} else {
module.exports = applicationConfig['testing'];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment