react router 404 not found on refresh in nginx server code example
Example: react after deployment givin nginx 404
in build folder, create a file called "Staticfile" and add this line
pushstate: enabled
//thats it. should work.
https://blogs.sap.com/2020/07/23/deploy-your-reactjs-application-in-cloud-foundry/