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
Seems like this isn't supported yet, and in the works by the Amplify team.
This was answered in an issue I opened on Amplify’s GitHub:
https://github.com/aws-amplify/amplify-hosting/issues/3116
I’m using Vercel while they work on that.