Exploration of various ways ISR reacts / responds to errors and different prop returns. See the pages directory for the various tests. Each of the tests are prefixed with isr-.
Note that all test results are taken against a production build npm run build.
- GH Repo - https://github.com/dapperlabs/nextjs-isr-testing
- Vercel Deployment - https://nextjs-isr-testing.vercel.app
npm cinpm run dev
Incremental Static Regeneration (ISR) is made available in next.js by default. It allows us to create and update static pages after the site is built. We can use static generation on a per-page basis, without needing to rebuild the entire site. The individual pages can be (re)generated on demand.
- A Complete Guide To Incremental Static Regeneration (ISR) With Next.js
- Incremental Static Regeneration
- Client side transitions do not trigger revalidation
- Refreshing on any page in the app triggers revalidation if the revalidation time period has passed
- If I am the one that loads the page and triggers the revalidation, the revalidation will happen in the background but I will see data that’s stale by one revalidation period.
- In local dev,
getStaticPropsruns on every page request. IfgetStaticPropserrors, the next.js error overlay view is shown.
