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.

test just to test
#5006 opened 9 hours ago by dwaynehbrown
Testing on demand ISR
#5005 opened 11 hours ago by Arunachalam-Rvmatrix
Hi, there
#5004 opened 19 hours ago by louisbaker2030
test
#5001 opened 2 days ago by annelyse
Test issue
#5000 opened 2 days ago by bbuono
test
#4999 opened 2 days ago by cachemoney
This is just a test for now
#4998 opened 2 days ago by cachemoney
Test for revalidatePath
#4997 opened 2 days ago by Akshayw3
test123
#4996 opened 2 days ago by dylan237
test
#4995 opened 2 days ago by dylan237
trying it out
#4994 opened 3 days ago by jetpham
Jbv
#4989 opened 4 days ago by Regnar110
Hi there
#4988 opened 4 days ago by zbigan
2
test
#4987 opened 5 days ago by m-zawadzki
Howdy
#4986 opened 6 days ago by Mev99
1
new comment by me
#4985 opened 6 days ago by myhumus
Test of webhook
#4984 opened 6 days ago by jmikedupont2
adding error checking and removing constants
#4983 opened 6 days ago by jmikedupont2
1
Yet another issue
#4980 opened 1 week ago by Saibaken
new issue to test
#4979 opened 1 week ago by khaled-mostafa
Ay yo what's up
#4976 opened 1 week ago by GoldenLiam
test12
#4975 opened 1 week ago by eamonsuo
Teste
#4974 opened 1 week ago by rbatistajs
6
Test Issue
#4973 opened 1 week ago by sun33t
I'm not sure!
#4972 opened 1 week ago by CubicMoein
what are you doing!?
#4971 opened 1 week ago by CubicMoein
look at this
#4970 opened 1 week ago by CubicMoein
haha
#4969 opened 1 week ago by txtrung
2
dsadsa
#4968 opened 1 week ago by NicholasRowe
testing
#4967 opened 1 week ago by clin211