auto switch urls depending on dev or prod environment