Change http endpoint on different environments


#1

We do a HTTP call, for example /api/users/current and configure proxy to have no problems with CORS.

In dev mode this is fine.

But on production mode we need to set another url, like http://api.bla.com/api/users/current. Which is the best way to handle this? Probably later we need to do also more sophisticated things.