Open Astray-git opened 6 years ago
You can get equivalent functionality via:
{
proxy: {
...['/auth', '/api'].reduce(
(acc, ctx) => ({
...acc,
[ctx]: { target: 'http://localhost:3000' },
}),
{}
),
},
},
Any update on that issue?
What problem does this feature solve?
Passing an Array to devServer.proxy is not supported. It can be used to proxy multiple, specific paths to the same target.
https://webpack.js.org/configuration/dev-server/#devserver-proxy
What does the proposed API look like?