Categories: DEVELOPMENT, API,
June 15, 2020 • ☕️ 1 min read
Proxy error: Could not proxy request /api/auth from localhost:3000 to localhost:5000 in reactjs application.
I have searched many options to resolve this proxy issue and finally found a solutions.
--ignore client
in server/backend package.json,"scripts": {
"start": "node server",
"server": "nodemon server --ignore client",
"client": "npm start --prefix client",
"dev": "concurrently \"npm run server\" \"npm run client\"",
},
Back to Blog list • Edit on GitHub • Discuss on Twitter
Personal blog by Elangovan.
I learn by breaking stuff (mostly code).