No idea why I can't google this, but I can't seem to figure out how to proxy my api calls in the webpack.config.prod.js file of my create-react-app. Putting it in the package.json file won't do because I need a different proxy locally.
I have it set up in the webpackDevServer.config.js, works great by putting it in the module.exports object. But it fails to build when I do the same in the webpack.config.prod.js. How to set this up for prod?
proxy: {
'/myService/*': 'https://myServiceEndPoint/',
},