Q5: What are the differences between fallback: false, fallback: true, and fallback: 'blocking'?

  • fallback: false: Ungenerated paths return a 404 page.
  • fallback: true: Serves a fallback page (router.isFallback) instantly, fetches data in the background, then swaps in content.
  • fallback: 'blocking': SSRs the new page on the first request, pausing navigation until HTML is rendered, then caches it for future visits.
Key Takeaways
  • false: Strict 404 for missing paths.
  • true: Shows fallback UI while generating in background.
  • blocking: Server-renders on demand before sending response (no fallback spinner).
Knowledge Check

Which fallback setting blocks initial page delivery until full HTML is generated on the server for uncached paths?