Created
August 29, 2018 09:42
-
-
Save shumon84/6e5fa2efeaaec2d714f48f517f321fe8 to your computer and use it in GitHub Desktop.
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
exports.envTest = (req, res) => { | |
const config = { | |
"develop" : { | |
"hoge" : 100, | |
"fuga" : "This is develop" | |
}, | |
"master" : { | |
"hoge" : 200, | |
"fuga" : "This is master" | |
} | |
} | |
const project = process.env.GCP_PROJECT; | |
const env = config[project]; | |
res.send(env["fuga"] + "\n" + "hoge = " + env["hoge"]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment