Next.js On-Demand ISR // Full tutorial

preview_player
Показать описание

Compared to the traditional interval based Incremental Static Regeneration this new On Demand feature gives a lot more flexibility. If you have a blog or ecommerce site and use a headless cms, you will love this feature.

My courses:

Connect with me:

00:00 What this video is about
01:26 What is On-Demand ISR
03:09 Add On-demand ISR support to a blog application
08:40 Test out the On-demand ISR api route
15:36 Automate On-demand ISR with Webhooks
22:32 Next step

#nextjs #isr #headlesscms
Рекомендации по теме
Комментарии
Автор

for anyone else getting 500 server error, 'unstable_revalidate' is now just called 'revalidate'

oliversaxon
Автор

Very clear explanation! Thanks for great content!

naingaungphyo
Автор

my path is only revalidated when I hit the revalidate API directly, not on demand. Has anyone experienced this?

CharlieV
Автор

TNX a lot, I searched many resources to find out how to revalidate dynamic routes and no body says anything about passing the pathToRevalidate in the body. Everybody describe the On-Demand ISR just for a fixed and static path.
By this solution you can purge the cache of a single blog post page instead of all posts.

sadeghnakhjavani
Автор

I was wondering. When using on-demand revalidation, is it required to set reviladtion timers inside the getStaticProps ?

panix
Автор

Can we use this to generate a new static path like for a new blog post?

BrendansReasons