Configure js variables based on environments
So we've a global javascript but that script has certain URL's specific to environments. What's the best practice to have different URL's configured based on environment.
Does anyone have good examples how to do this?