React Build page
I wanted to deploy a react app to nginx, with the following commands
But i found out that
npm run build
only produces an index.html
and i get error 404 if I navigate on the deployed page.
Is there a way to fix this without changing the code, it's not mine.1 Reply
Solved, Solution : Add
error_page 404 /index.html;
to Nginx Routing config because React Client routing can't handle itself.