Switch oaunt endpoint depending on environment