I am a bit baffled by this. Following the simplest Nextjs on AWS S3 demos result in a an app that can only load index.html.
You upload you files to S3. The index.html will load. If you navigate through a link to another route, say /test
, the page will load. Then hit refresh, and it results in a 404. How can this be fixed? Have anybody seen this before, I am not sure how I got this wrong because I was following pretty basic instructions.
sample demo: https://medium.com/bb-tutorials-and-thoughts/how-to-build-a-next-js-static-website-with-aws-s3-643ff55261ac
Note: I have tried this with 4+ demos all with the same result.