Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var server = {
"development": "http://localhost:8000/",
"production": "http://myapp-production.herokuapp.com/",
"staging": "http://myapp-staging.herokuapp.com/"
}[process.env.NODE_ENV || "development"] + "myquery?parameter=VALUE";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment