Incremental Static Regeneration (ISR)

ISR allows static pages to update automatically after deployment without rebuilding the entire site.

What is ISR?

ISR combines static generation with background updates. Pages are pre-built, but refreshed periodically when new requests arrive.

How does it work?

fetch("API", {
  next: { revalidate: 10 }
});

The first request uses cached static content. After the revalidation time passes, Next.js regenerates the page in the background.

Why use ISR?

Real-World Example

An e-commerce product page updates prices every few minutes without redeploying the site.

Interview Tip

ISR allows static pages to regenerate in the background after a set interval, combining performance with fresh data.