Our frontend web software contains, inside a file called url.js a variable used as URL root for REST webservices.
var url = "https://devappserver:8080";
During development on developer PC, for testing purpose, the variable is often changed to
var url = "https://localhost:8080";
The problem is that often developers commits the file with variable pointing to localhost on the development branch.
We use Subversion as VCS.
Which should be the best practice to avoid the error?
Is there a tecnical solution to achieve the goal?