DEV Community

Discussion on: FullStack setup (Node.js, React.js and MongoDB)

Collapse
 
rutul24591 profile image
Rutul Amin • Edited

For the proxy issue follow the steps below.

Replace the ' const proxy' in setupProxy.js file with this.

const { createProxyMiddleware } = require('http-proxy-middleware');

module.exports = function(app) {
app.use('/api',
createProxyMiddleware({
target: 'localhost:5000',
changeOrigin: true
})
);
};

it works. You can follow . Please let me know here