A simple & clear guide to On-Demand ISR in Next.js

Daminda Dinesh Imaduwa Gamage
5 min readSep 9, 2022

What is on-demand ISR?

On-demand ISR is a new feature added to the existing incremental static regeneration ( ISR ) in Next.js. Using ISR developers can reduce build-time in SSG. And most importantly, updating the cache periodically at a previously specified interval can resolve the issue of showing stale data on web pages.

Although ISR is a successful approach, it does not eliminate the issue of showing stale data on static sites entirely. To answer this issue, Next.js added a new feature to ISR. This…

--

--