Change http endpoint on different environments


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 Which is the best way to handle this? Probably later we need to do also more sophisticated things.