Skip to content

Instantly share code, notes, and snippets.

@shumon84
Created August 29, 2018 09:42
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 shumon84/6e5fa2efeaaec2d714f48f517f321fe8 to your computer and use it in GitHub Desktop.
Save shumon84/6e5fa2efeaaec2d714f48f517f321fe8 to your computer and use it in GitHub Desktop.
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