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?
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.
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
if you would have provided the lambda function code in the description then that would have been cool
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?
how to set ISR when u host it on s3?
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.
Permissions in AWS can be tricky depending on your environment, try with a new account perhaps?
@@jonasgroendahl Hi Jonas, Do you have any instruction for deploying NEXT js SSR pages to AWS?
thanks dude
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
can you please explain in detail I am new to AWS