Setting Revalidate Endpoint in Next Page Router

Are there examples how to setup the revalidate endpoint with secret key in Nextjs page router?


Hey Nash,

The blog post here describes how to use revalidate:


Hello Sam, thanks for response but looks like the tutorial is for App Router, do we have one for Page Router? thanks

100% chance that I could be incorrect in my assessment (disclaimer).
When I was the using the pages router, caching wasn't a thing with getStaticProps etc. I don't believe one uses this revalidate function when using the pages router. To use this feature, I believe you must switch to the app router to revalidate the content that is cached in the async server functions.
If I'm wrong about this, I look forward to learning the truth. :grin:

1 Like