Created
September 8, 2020 20:28
-
-
Save arkilis/f26f0e5ab950e3e9c14c7c4c830cb439 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
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