How to host static Nextjs site to S3

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ม.ค. 2025

ความคิดเห็น • 9

  • @SaquibMansuri-w8v
    @SaquibMansuri-w8v ปีที่แล้ว

    if you would have provided the lambda function code in the description then that would have been cool

  • @gibstock7623
    @gibstock7623 ปีที่แล้ว

    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?

  • @jsps-z9k
    @jsps-z9k 2 ปีที่แล้ว

    how to set ISR when u host it on s3?

  • @connorstansfield6461
    @connorstansfield6461 3 ปีที่แล้ว

    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.

    • @jonasgroendahl
      @jonasgroendahl  3 ปีที่แล้ว

      Permissions in AWS can be tricky depending on your environment, try with a new account perhaps?

    • @VafPersian
      @VafPersian 3 ปีที่แล้ว

      @@jonasgroendahl Hi Jonas, Do you have any instruction for deploying NEXT js SSR pages to AWS?

  • @stevenmcgown6552
    @stevenmcgown6552 ปีที่แล้ว

    thanks dude

  • @oosswwaalldd
    @oosswwaalldd 2 ปีที่แล้ว

    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

    • @jvarunbharathi9013
      @jvarunbharathi9013 2 ปีที่แล้ว

      can you please explain in detail I am new to AWS