npm / @netlify/plugin-nextjs
@netlify/plugin-nextjs
What changed in @netlify/plugin-nextjs 4 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
6 breaking8 new APIs and options3 performance5 behavior and defaults52 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@netlify/plugin-nextjs 572 changes
Breaking changes 6
Pages router no longer prefetches the revalidation marker.
The build fails if BUILD_ID is missing from the location where the runtime will read it.
The runtime removes the x-nextjs-cache header and uses Cache-Status instead.
Middleware no longer runs at the origin.
Middleware does not run on a rewrite target.
The build checks whether the Next.js version is satisfied and fails when it is not.
New APIs and options 8
The plugin supports the skew protection token.
The plugin now supports skipProxyUrlNormalize.
Supports revalidateTag with SWR behavior.
Adds skew protection.
Middleware routing is added to the runtime.
The runtime gains the first part of its OpenTelemetry integration.
Static export is supported.
This header is supported to enable the server-timing header when debugging.
Performance 3
Indexes revalidated tags so requests no longer read one manifest per tag.
HTMLRewriter WASM is lazy-loaded only when needed.
Blob gets are conditional when the same blob was fetched before for previous requests.
Behavior and default changes 5
Adds header handling for static service-worker assets.
Eleventy is added at build time to the runtime.
The runtime adds support for monorepositories.
Requests for local images through /_next/image are handled by Netlify Image CDN.
The build checks for a root publish directory.
Fixes and other changes 50
Middleware now runs for i18n locale casing.
Per-page turbopack manifests are copied into the Netlify function.
The internal header is stripped from responses.
Creates the server directory before patching the functions config manifest, avoiding failures when that directory does not yet exist.
Regenerate tag-stale pages during CDN background revalidation.
App router tags are encoded when purging cache.
Seeds the route group cache correctly for the new cache key signature.
Adjusts cache handler keys for compatibility with next@16.3.8.
Preserves initURL.
Awaits the Node middleware require in the generated edge handler template.
Keeps non-ASCII blob keys consistent between build and runtime.
Prevents crashes when server actions exceed the body size limit.
Handles invalid _next/image requests.
Prerendered content is marked as less stale now that the expire setting is enforced when marking content for blocking re-render.
Fixed matching on data routes when the middleware matcher uses allowed paths.
A cache tag is now set for getStaticProps redirects.
Same-url rewrites are no longer optimized when response headers need to be applied.
Handles extractExportedConstValue returning null or a wrapped object in next@canary.
Works around tarball bundling issues with virtual CJS modules for Node.js middleware/proxy.
Fixes resolving CommonJS when a nested package.json is present in Node Middleware/proxy.
Cache tags provided by Next.js for the App Router are now encoded.
Handles Next.js using cdn-cache-control for cacheable responses.
Handles PPR shells for fully dynamic segments on Next.js 16.1.0 and later.
Handles malformed location headers when using the next/navigation redirect API.
De-duplicates blob operation spans.
Adds compatibility for next@16.1.0-canary.19.
Handles node_modules in standalone's dist dir.
Fixed handling of the cacheComponents case that was not producing prerendered .rsc files.
Corrects the middleware nft path in setups using a base directory.
Fixed API routes module parsing for recent Next.js releases.
The AsyncLocalStorage shim is applied only when AsyncLocalStorage is not already available.
A Buffer shim is added when Buffer is not globally available.
The process shim is applied only when process is not already available.
Removes a duplicate fetch span.
Fixes the incorrect middleware nft output path for Next.js 16.
Supports SWR behavior for revalidateTag in the 'use cache' handler.
Usage of a custom distDir is fixed.
Query parameters are handled correctly on data rewrites.
User-defined included_files for functions in netlify.toml are respected.
Cache freshness for ISR content is fixed.
Middleware header mutations are handled correctly.
Multiple matchers for middleware are handled.
Middleware rewrite bodies and loops are handled.
On-demand revalidation is made reliable.
Pages Router notFound pages are handled.
The runtime now works with the pnpm package manager.
A PPR build error is avoided.
The runtime now honors skipMiddlewareUrlNormalize.
Fully static pages receive permanent cdn-cache-control.
An issue preventing unstable_cache from working is fixed.
@netlify/plugin-nextjs 42 changes
Fixes and other changes 2
fetch is reassignable instead of const, fixing cases where reassignment is needed.
self is reassignable instead of const, fixing cases where reassignment is needed.