we have a single page app in ReactJS that is being served by CloudFront but the response status continues to be 404 for any nested pages (i.e pages other than the home page).
How can this be resolved? Attached snapshot
DevOps Stack Exchange is a question and answer site for software engineers working on automated testing, continuous delivery, service integration and monitoring, and building SDLC infrastructure. It only takes a minute to sign up.Sign up to join this community
you can catch an error like 404 and redirect it to 200 and your index.html with custom error pages in cloudfront like shown here https://www.youtube.com/watch?v=gBkysF8_-Es