Hi, in prod mode, I would be serving the dist folder via my node server, all outgoing API requests from the client will be on the /api/* path. This works fine.
In dev mode, the client is served at localhost:3000 by the dev server, and I need to proxy all outgoing requests on the /api/* path to a different port on localhost. I added this to webpack.dev.config.js, but it does not work.
Hi, in prod mode, I would be serving the
dist
folder via my node server, all outgoing API requests from the client will be on the/api/*
path. This works fine. In dev mode, the client is served at localhost:3000 by the dev server, and I need to proxy all outgoing requests on the/api/*
path to a different port on localhost. I added this towebpack.dev.config.js
, but it does not work.Thanks for the help!