Guides: ISR | Next.js
For a more precise method of revalidation, use res.revalidate to generate a new page on-demand from an API Router. For example, this API Route can be called at /api/revalidate?secret= to revalidate a given blog post. Create a secret token only known by your Next.js app. This secret will be used to prevent unauthorized access to the revalidation API Route. If you are using on-demand revalidation, you do not need to specify a revalidate time inside of getStaticProps. Next.js will use the default value of false (no revalidation) and only revalidate the page on-demand when res.revalidate() is called. If there is an error inside getStaticProps when handling background regeneration, or you manually throw an error, the last successfully generated page will continue to show. On the next subsequent request, Next.js will retry calling getStaticProps. You can configure the Next.js cache location if you want to persist cached pages and data to durable storage, or share the cache across mult
This page is also available as Markdown at /docs/pages/guides/incremental-static-regeneration.md . For an index of Next.js Pages Router documentation , see /docs/pages/llms.txt . Copy page You are currently viewing the documentation for Pages Router. How to implement Incremental Static Regeneration (ISR) Last updated May 21, 2025 Examples Next.js Commerce On-Demand ISR Next.js Forms Incremental Static Regeneration (ISR) enables you to: Update static content without rebuilding the entire site Reduce server load by serving prerendered, static pages for most requests Ensure proper cache-control h
Explore this link on the map →related reading
- Incremental Static Regeneration (ISR)vercel.com
- How Notion pulled itself back from the brink of failure | Figma Blogfigma.com
- Cursor Docs — Agent, Rules, MCP, Skills & CLIdocs.cursor.com
- Rendering: Static Site Generation (SSG) | Next.jsnextjs.org
- Getting Started: Caching | Next.jsnextjs.org
- Town | The AI Assistant That Does the Worktown.com
- The Content Operating System for the AI era | Sanitysanity.io
- Cursor Docs — Agent, Rules, MCP, Skills & CLIdocs.cursor.com
- Cursor Docs — Agent, Rules, MCP, Skills & CLIdocs.cursor.com
- Building a single-page application with Next.js and React Routercolinhacks.com
- LessWronglesswrong.com
- bible.com/users/elizabethjqiu/reading-plans/16498-gods-not-done-with-you-a-10-day-devo-tauren-wells/subscription/1126836150/day/4/segment/1bible.com