skip to Main Content

We have built a NextJS website that is running on AWS Amplify, we are currently using getStaticProps in order to render the pages, and we generate them using getStaticPaths.

We would like to use on-demand revalidation in order to refresh the data on our command when we update the database, for example.

Our local env works perfectly, the data is the same until we change and revalidate using our secret API endpoint, on the other hand when we deploy to AWS Amplify, the revalidation doesn’t work.

We looked into the logs and didn’t see any errors, nor are the permissions for SQS invalid. We even removed the branch and redeployed it, yet nothing worked.

I have tried searching for the same problem online yet didn’t find any solution, did anyone here stumble upon the same issue?

Thank you!

2

Answers


  1. Chosen as BEST ANSWER

    Seems like this isn't supported yet, and in the works by the Amplify team.


  2. This was answered in an issue I opened on Amplify’s GitHub:

    https://github.com/aws-amplify/amplify-hosting/issues/3116

    right now, Amplify Hosting does not support on-demand ISR. Supporting
    it is on our roadmap and we will update our documentation to make this
    clear.

    I’m using Vercel while they work on that.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search