24th August 2024
← BackAs you may know, traditional static sites are fast but lack real-time content updates. On the other hand, fully dynamic sites can drastically slow down your performance.
ISR (Incremental Static Regeneration) offers a solution by allowing you to pre-render pages at build time and update them as new data comes in, providing the best of both worlds.
To use ISR, you add the revalidate prop to getStaticProps. Here’s an example code snippet taken from the Next.js official documentation:

Check this out if you want to know how useDebounce works.