Closed
Description
How do I add more than one proxy. In the documentation, only one way is shown:
"proxy": "http://localhost:4000"
But I need add a few patterns for my proxy like:
"proxy": { "/api/*": "http://localhost:4000", "/forms/*": "http://localhost:4000", "/content/*": "http://localhost:4000" }
I would normally write this like so in my webpack.config file but this isn't working:
devServer: { proxy: { "/api/*": "http://localhost:4000", "/forms/*": "http://localhost:4000", "/content/*": "http://localhost:4000" } }