Demo ModeUsing mock data. Add GitHub App credentials to connect to real issues.
vercel / on-demand-isr5671,234

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.

Page generated at: Loading...
How to trigger revalidation
#2 opened by demo-user
1
Performance benefits of ISR
#3 opened by nextjs
2
Built with v0