Created
November 12, 2016 21:49
-
-
Save 007lva/5445ab363d640d0d23ccbd57dd7f68d1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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