Tell me please what's the right way to change e.g. an api url by changing the git branch for requests to the right server.
i have two servers (for example):
and two branch:
- master
- dev
is there any way to do like this:
let uploadSomethingUrl = url + "/upload/something"
where url
is set depending on the checked out branch
"dev" is checked out ->
https://www.development.com/upload/something
"master" is checked out ->
https://www.production.com/upload/something