I’ve recently been working on a new reactjs project in work and have dockerized it.
Currently using express to proxy requests for local dev to a locally running Java backend. But now I’ve stumbled on an issue: how can I configure the app to use a different proxy in production?
Locally I proxy all requests in express for:
/api/some/path/* —> localhost:<some_port>/*
And will need to do the same in my production env
What’s the best way to achieve this?
Thanks in advance!