Search code examples
amazon-web-servicesnext.jsaws-amplifyincremental-static-regeneration

Using NextJS On Demand Revalidation on AWS Amplify


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!


Solution

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