In this video we'll show to deploy a static nextjs site to s3 and how to combat some of the difficulties that comes with a static host like s3 and routing with nextjs
Hi, great video! The only problem I'm running into is when a user requests a page that should be a 404, the response is a 304. Does this have anything to do with this fix?
Another way to accomplish this is to create behaviors on the cloudfront for both: 403 and 404 errors with /index.html as the path and returning 200, this will redirect to / and from that point on NextJs does the magic routing
I can navigate to the pages but when I try to access the dynamic routes directly I get hit with 503 error: The Lambda function associated with the CloudFront distribution is invalid or doesn't have the required permissions.