Static website hosting and client side routing

Av Alexander Dragunov | Blogg | 30 mars 2019

My photo portfolio is implemented as SPA (Single Page Application) using React, so all routing is happening on the client. And it worked fine, until I did hard refresh of the page or wanted to share direct link to one of the pages (for example In this case users saw 404 error page produced by Amazon S3 as it tried to find object with key ethiopia in the bucket, which obviously did not exist as it only existed as client route.
Till inlägget