npm / @astrojs/netlify
@astrojs/netlify
What changed in @astrojs/netlify 3 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
13 breaking4 security3 deprecations6 new APIs and options8 behavior and defaults13 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@astrojs/netlify 811 changes
Breaking changes 1
Astro v7 upgrades its development server and production bundler to Vite 8. Projects using Vite-specific plugins, configuration, or APIs may need updates for breaking changes.
Security 2
Generated allowlists now reject remote URLs that contain an allowed image origin only within their path or query string.
@astrojs/netlify generates an overly-broad Netlify Image CDN allowlist because remotePatterns.pathname metacharacters are not escaped
New APIs and options 1
Adds devFeatures.edgeFunctions so users can disable Netlify Edge Function emulation during astro dev; edge functions still work in production builds and via netlify dev.
Behavior and default changes 2
Unpins @astrojs/* dependencies so versions matching the ^ range can be installed.
When session: false is set in astro.config, the adapter no longer auto-wires the Netlify Blobs session driver, allowing the session runtime to be tree-shaken out of the function bundle.
Fixes and other changes 5
Prevents traces from including the entire project when a dependency uses paths the tracer cannot resolve.
Dynamic path segments no longer glob the whole workspace, preventing unrelated files from being included in function bundles for monorepo projects.
Netlify Image CDN patterns with pathnames ending in /** now match only paths below that directory, consistent with Astro pattern matching; /public/** no longer matches /public-assets/.
Skew protection patterns now include the build assets directory (/_astro/ by default), preventing lazy-hydrated islands from loading duplicate framework instances after a redeploy.
Fixes incorrect dependencies listed in the peerDependencies field.
@astrojs/netlify 726 changes
Breaking changes 8
Updates the Astro peer dependency requirement to 6.0.0, affecting which Astro versions are compatible with this adapter.
The default changes from true to 'jsx', stripping HTML whitespace using JSX rules; set it to true to keep the previous behavior.
This deprecated option still works, but now requires @astrojs/markdown-remark to be installed.
Queued rendering is now the default, so projects no longer need the experimental flag to enable it.
The Rust-based compiler replaces the Go-based compiler as the default and only compiler; it rejects unclosed tags and no longer corrects semantically invalid HTML.
Sätteri is now the default Markdown pipeline for .md and .mdx files; the remark/rehype pipeline is no longer installed by default.
Astro now treats this file as advanced routing configuration and automatically imports it; rename an unrelated existing file or configure fetchFile.
The adapter feature is stable; replace experimentalStaticHeaders with staticHeaders in the Netlify adapter configuration.
Security 2
@astrojs/netlify broadens Astro image.remotePatterns in Netlify Image CDN config
Regex generation for remotePatterns now matches canonical wildcard semantics more strictly.
Deprecations 1
The edgeMiddleware option is deprecated; transition to middlewareMode.
New APIs and options 4
Netlify edge middleware now provides the client IP address through clientAddress; createContext() also accepts this option for explicit control.
Set a different filename or null to disable advanced routing when src/fetch.ts is used for another purpose or routing features are not needed.
The image service now supports the fit option.
Adds middlewareMode as the replacement for edgeMiddleware; set it to 'edge' to use edge middleware.
Behavior and default changes 4
Advanced routing is enabled by default, so its experimental flag is no longer needed.
Route caching is stable; move cache and routeRules out of the experimental block in Astro config.
The experimental flag is no longer needed for the logging system; configure the logger directly in the top-level Astro config field.
Set this to unified() from @astrojs/markdown-remark to keep using the unified Markdown pipeline and its plugins.
Fixes and other changes 7
Fixes validation of remote image dimensions during static builds on Netlify.
Fixes server islands returning 404 in production when using the default
output: 'static'setting.Fixes an issue where the adapter caused a series of warnings during the build.
Fixes a case where build.serverEntry was not respected when using the new Adapter API.
Fixes cases where the image CDN was used in development despite being disabled.
Fixes builds failing with “Entry module cannot be external” when using the Netlify adapter, without requiring code changes.
Fixes Netlify routing so server-rendered routes are handled by the SSR function instead of returning 404 errors.
@astrojs/netlify 62 changes
Behavior and default changes 1
Netlify deployment IDs are automatically included in built-in asset requests and API calls, keeping client and server versions synchronized. Custom fetch requests can send the X-Netlify-Deploy-ID header using DEPLOY_ID.
Fixes and other changes 1
Fixes a case where disabling the local image CDN wasn't possible.
@astrojs/netlify 41 changes
Behavior and default changes 1
The adapter overhaul simplifies the user-facing configuration for static and SSR deployments.
@astrojs/netlify 37 changes
Breaking changes 4
The Netlify Edge adapter is removed; use @astrojs/netlify/functions with edgeMiddleware enabled instead.
Configure edge middleware through the adapter options, replacing build.excludeMiddleware and enabling Edge middleware with the functions adapter.
Configure function-per-route behavior through the adapter options, replacing build.split.
Node 16 is no longer supported; Astro and all integrations now require Node 18.14.1 or later.
Deprecations 2
This build option is deprecated; configure edgeMiddleware in the adapter options instead.
This build option is deprecated; configure functionPerRoute in the adapter options instead.
New APIs and options 1
Integrations can declare which Astro features they support using a feature map.