baseUrl chooses correct url based on deployed or not