Incremental Static Regeneration (ISR)

This page uses Incremental Static Regeneration (ISR).

The content is statically generated but will be regenerated in the background after 30 seconds. This provides a balance between performance and data freshness.

Data Timestamp

1/14/2026, 6:17:09 PM

This page will be regenerated after 30 seconds have passed since the last generation.

Implementation Details

In Next.js 15, ISR is implemented using the revalidate directive.

There are two ways to enable ISR:

  • Route segment config: export const revalidate = 30;
  • fetch options: fetch(url, { next: { revalidate: 30 } })

Additional ISR features:

  • On-demand revalidation via revalidatePath() or revalidateTag()
  • Time-based revalidation as shown in this example
  • Performance benefits of static generation with fresher data