Step 9 - Error pages
Course: Frontend Deployments on AWS - chapter 9
You will notice a problem, whenever you try to access a route on your page that isn’t the index route (/user/1) , you reach an error page

This is because cloudfront is looking for a file /user/1in your S3, which doesn’t exist.
To make sure that all requests reach index.html, add an error page that points to index.html


💡 You might have to invalidate cache to see this in action.