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.

text
#3076 opened 5 hours ago by evoratec
test
#3075 opened 11 hours ago by akhilvc10
Hemant S
#3074 opened 11 hours ago by hemantsavkar
Sit consectetur qui
#3073 opened 14 hours ago by parkerthegeniuschild
test
#3072 opened 18 hours ago by LionsTheme
Test
#3071 opened 20 hours ago by KirilD77
Testing
#3068 opened 1 day ago by ayubabdullah
Demo
#3065 opened 1 day ago by anjalbinayak
On Demand ISR
#3064 opened 1 day ago by KyawZayarLinnCS
Test
#3063 opened 1 day ago by Zerro97
2
test
#3062 opened 2 days ago by squest-git
Rich issue
#3061 opened 2 days ago by richinator38
Test
#3060 opened 2 days ago by pauloalmeida19
1
probando on demand isr
#3059 opened 2 days ago by fuhrn
Testing on demand revalidation
#3058 opened 2 days ago by jzambranoavvy
sdsd
#3057 opened 2 days ago by iandoe
testing
#3056 opened 2 days ago by RyanSyen
test isr
#3055 opened 2 days ago by WalterMW
testing ondemand ISR
#3054 opened 2 days ago by nag-murali
Testing isr
#3053 opened 3 days ago by claesnn
ใƒ†ใ‚นใƒˆใƒ†ใ‚นใƒˆ๐ŸŽฐ
#3052 opened 3 days ago by kentaro-maker
Testing how ISR works
#3051 opened 3 days ago by LanguageXange
test
#3050 opened 3 days ago by abderahmaneBasil
Martys test
#3049 opened 3 days ago by MartinaMilisic
Testing
#3048 opened 3 days ago by ben-umble
1
new commit
#3047 opened 3 days ago by Beguface
1
bugfix #27
#3046 opened 3 days ago by ainizoda
serious issue
#3044 opened 4 days ago by bjbagher
Test hamish
#3043 opened 4 days ago by hwhmeikle
Hello
#3042 opened 4 days ago by NataliiaHrynyk