Skip to content

Instantly share code, notes, and snippets.

@elliotbonneville
Created June 26, 2015 13:42
Show Gist options
  • Save elliotbonneville/427345635d23fc4348a9 to your computer and use it in GitHub Desktop.
Save elliotbonneville/427345635d23fc4348a9 to your computer and use it in GitHub Desktop.
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