DEV Community

Discussion on: How to add a blog using Dev.to as a CMS to a Next.js website

Collapse
 
joshmedeski profile image
Josh Medeski

Great post James!

Have you thought of migrating to the Next.js Incremental Static Regeneration (ISR) feature? You can reduce the amount of times you have to rebuild the whole site but just allowing each page to regenerate it's static state on the revalidation time you set.

Docs for ISR:
vercel.com/docs/concepts/next.js/i...

Collapse
 
jameswallis profile image
James Wallis

Hi Josh, thanks!
Yes in hindsight it would've been a lot easier to use ISR!
I originally decided that I wouldn't use it because that first user that hits it will not see the latest post - in reality, that user is going to be me aha. In any case it was fun to mess around with Vercel's deploy hooks.

Some comments have been hidden by the post's author - find out more