timlrx / tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
https://tailwind-nextjs-starter-blog.vercel.app/
MIT License
8.45k stars 1.96k forks source link

How to apply Incremental Static Regeneration? #847

Open demonhunter3333 opened 6 months ago

demonhunter3333 commented 6 months ago

Is your feature request related to a problem? Please describe. How to apply Incremental Static Regeneration with this template, if im just using MDX files in the /data/blog folder?

Describe the solution you'd like If ISR is applied, I don't have to redeploy the whole site after I correct a typo.

https://vercel.com/docs/concepts/incremental-static-regeneration/overview

webdevlapani commented 6 months ago

Sure, here's a more refined version:

In order to utilize Incremental Static Regeneration (ISR), it's essential to retrieve blog data from a database or another server. If you're employing MDX, you'll have to rebuild and redeploy it regardless. Consequently, there wouldn't be any advantage to using ISR.

To leverage ISR effectively, you must fetch data from an alternative source, enabling its utilization.

darisi commented 6 months ago

Looking for this as well. I think it's more like processing/generating mdx files on page load, then they stay static.