This app demonstrates *On-Demand ISR support* in Next.js (view source).

How does this work?

When issues on the `on-demand-isr` repo change (get created, commented on, deleted, etc), GitHub fires off a webhook and the impacted pages get re-rendered and pushed to the edge, on demand. The webhook on the Next.js app side executes a new `revalidatePath()` API call.

Didn't this exist already?

Unlike `revalidate` with a time interval, a Serverless Function is invoked _only when content changes_, making it faster for the user (they see changes immediately), and more cost-efficient for owners.

_💡 Try creating a new issue or commenting, and refresh this page to see the regenerated one!_
Pages take about *300ms~* to fully propagate to the global Vercel Edge Network after the regeneration completes.

Does it work?
#4387 opened just now by webplantmedia
1
Hello world
#4386 opened 2 minutes ago by webplantmedia
Test
#4385 opened 4 hours ago by jagonzalr
1
test issue
#4384 opened 17 hours ago by nsbuckner
:)
#4382 opened 2 days ago by ivanstnsk
Hello world!
#4381 opened 2 days ago by KimIlia91
test issue
#4380 opened 2 days ago by akshaytvisha
1
test
#4379 opened 2 days ago by Lorraxs
1
test
#4378 opened 4 days ago by rumfiske
ewfwefewf
#4376 opened 1 week ago by pregnantboy
1
test
#4375 opened 1 week ago by quarkcore
test
#4374 opened 1 week ago by dreyanz
Trying ISR II
#4373 opened 1 week ago by charchil-tatva
Trying ISR
#4372 opened 1 week ago by anbari1337
Revalidate Now
#4371 opened 1 week ago by gilbarbara
te
#4370 opened 2 weeks ago by pug-pelle-p
cxvx
#4369 opened 2 weeks ago by Dindonneau
test
#4368 opened 2 weeks ago by caesar1030
test issue
#4367 opened 2 weeks ago by caesar1030
test issue
#4366 opened 2 weeks ago by claudiusbobbins
test
#4365 opened 2 weeks ago by iSonik
test revalidate
#4364 opened 2 weeks ago by webard
1
test
#4363 opened 2 weeks ago by adam-shih
Hello NextJS ISR
#4362 opened 2 weeks ago by ika18
Test issue
#4360 opened 2 weeks ago by Hertrooy
whats going on? lets see
#4359 opened 2 weeks ago by swayam1998
Will this help my use case
#4358 opened 2 weeks ago by ShawndaleS
gn
#4357 opened 2 weeks ago by Notamatall
test
#4356 opened 2 weeks ago by Notamatall
some data
#4355 opened 2 weeks ago by Notamatall