This app demonstrates the new *On-Demand ISR support* in Next.js 12.1 (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 `res.revalidate()` 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.

Hello from the other side!!!!!
#3449 opened 7 hours ago by iukea1
This is just a test :)
#3448 opened 10 hours ago by AchillesKal
...
#3447 opened 12 hours ago by oscarbc96
Revalidate!
#3446 opened 19 hours ago by Messerblatt
Frak. So Say We All. By Your Command.
#3445 opened 2 days ago by thealzhe
2
example sdfadsf
#3444 opened 2 days ago by GiancarlosIO
Ejemplo 2
#3443 opened 2 days ago by JamesLoor
Another test issue
#3441 opened 3 days ago by revvi
🏠👨‍🔧 🔨💥 🧱👨‍🔧{ Uh oh. New issue. )
#3440 opened 3 days ago by FelixWaweru
test
#3439 opened 3 days ago by thekirilltaran
another test
#3437 opened 3 days ago by justinbmeyer
test
#3436 opened 3 days ago by thiagobrito
foo
#3435 opened 4 days ago by exneval
test
#3433 opened 4 days ago by strmzi-git
richard
#3432 opened 4 days ago by Vyacheslav-Belov-OO
test
#3431 opened 5 days ago by dcrnek1
Test
#3430 opened 5 days ago by hitalo07
test
#3429 opened 5 days ago by williamjulianvicary
test
#3428 opened 5 days ago by montazze
test
#3427 opened 6 days ago by mmilojevic202
as
#3426 opened 6 days ago by erolsurmeli
TEST ISR
#3425 opened 1 week ago by almustarik
Testing ISR here
#3424 opened 1 week ago by fauzulkc
Ejemplo revalidate
#3423 opened 1 week ago by JamesLoor
2
Testing
#3421 opened 1 week ago by michael-kudrik
New Issue dell
#3420 opened 1 week ago by MohamadHFallah
New Issuse by Ben.K
#3418 opened 1 week ago by bkoubik88
Testing the cache
#3417 opened 1 week ago by brohiem
Another test!
#3416 opened 1 week ago by Tsuyae
Test
#3415 opened 1 week ago by Tsuyae