We are excited today to introduce Next.js 9.5, featuring:
- Stable Incremental Static Regeneration: re-build static pages after you’ve deployed, in milliseconds
- Customizable Base Path: easily host Next.js projects on subpaths of your domain
- Support for Rewrites, Redirects, and Headers: rewrite vanity URLs, redirect old URLs, and add headers to static pages
- Optional Trailing Slash in URLs: consistently enforce the absence or presence of a trailing slash
- Persistent Caching for Page Bundles: unchanged pages’ JavaScript files now carry forward across builds
- Fast Refresh Enhancements: improved reliablility of the Next.js live-editing experience
- Production React Profiling: a new flag to measure your project’s “cost” of rendering
- Optional Catch All Routes: dynamic routes now provide more flexibility for SEO-driven use-cases
- Webpack 5 Support (beta): optionally opt-into the next version of webpack 5 for improved build size and speed

Stable Incremental Static Regeneration
Next.js introduced Static Site Generation methods in 9.3 with a clear goal in mind: we should get the benefits of static (always fast, always online, globally replicated), but with excellent support for dynamic data, which Next.js is known for.
To get the best of both worlds, Next.js introduced Incremental Static Generation, updating static content after you have already built your site. By using the fallback: true
option in getStaticPaths
, you can register new static pages at runtime.
Next.js can statically pre-render an infinite number of pages this way, on-demand, no matter how large your dataset is.