Skip to content

Instantly share code, notes, and snippets.

@arkilis
Created September 8, 2020 20:28
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 arkilis/f26f0e5ab950e3e9c14c7c4c830cb439 to your computer and use it in GitHub Desktop.
Save arkilis/f26f0e5ab950e3e9c14c7c4c830cb439 to your computer and use it in GitHub Desktop.
var url = ""
#if DEBUG
// use localhost while under debug mode
url = "https://localhost"
#else
// use production url while under release
url = "production url"
#endif
// You can negate the flag
#if !RELEASE
// use localhost while under debug mode
url = "https://localhost"
#else
// use production url while under release
url = "production url"
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment