Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.