I have an application used to call web services where base URL are different for different environment (dev/SIT/UAT/preProd/prod etc...) So I have decided to add base URL on Config.json file.
"env:development": {
"BASE_URL" : "https://xxxx/api/"
},
"env:SIT": {
"BASE_URL" : "http://1yyyy/api/"
},
"env:UAT": {
"BASE_URL" : "http://1yyyy/api/"
},
"env:production": {
"BASE_URL" : "ccccc"
},
Now My question is... If I want to make a build for SIT or UAT or Production, How that app will take appropriate base url. How to define that I am running my app on development SIT, UAT or production?