I'm setting up a new project. In it I used a proxy settings inside my package.json.
Now, everytime I use fetch I do this:
fetch("/foo")
instead of this:
fetch("http://www.bar.com/foo")
This is all good while I'm in development mode. However, I dont know how can I supply my fetch() with the appropriate base url while my app is in production mode.
Any help is much appreciated. Thank you!