Closed
Description
Hi,
I'm using the following configuration, and running webpack-dev-server --content-base public
proxy: {
'/api/*': {
target: 'http://localhost:4907',
rewrite: function(req) {
console.log(req)
req.url = req.url.replace(/^\/api/, '');
}
}
},
All requests e.g. /api/user/current
have a 404 response, and my console.log
never fires. Is there some other part of the config that I'd need to change?
Thanks,
Chris
Metadata
Metadata
Assignees
Labels
No labels