@astrojs/netlify
8.2.14 · 13 Nov 2026MIT71.2k / weekRepositoryHomepagenpmAtom feed
151 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 8.x · latest line
8.2.14
13 Nov 2026Unpins
@astrojs/*dependencies to allow versions matching the^range to be installed
8.2.13
10 Nov 2026Prevents server function traces from including the entire project when a dependency uses paths the tracer cannot resolve.
Patch Changes
Prevents server function traces from including the entire project when a dependency uses paths the tracer cannot resolve.
8.2.12
5 Nov 2026Only updates dependencies:@astrojs/internal-helpers 0.13.1@astrojs/underscore-redirects 1.0.4
8.2.11
2 Nov 2026Fixes NFT tracing so dynamic path segments no longer glob the whole workspace, which could include unrelated files in function bundles for monorepo projects
Patch Changes
Fixes NFT tracing so dynamic path segments no longer glob the whole workspace, which could include unrelated files in function bundles for monorepo projects
8.2.10
15 Oct 2026Only updates dependencies:@astrojs/internal-helpers 0.13.0@astrojs/underscore-redirects 1.0.4
8.2.9
8 Oct 2026Refactors internal bundling and code transforms to use Vite's Oxc-based
transformWithOxcand Rolldown instead of esbuild. These packages no longer depend on esbuild directly.
Patch Changes
Refactors internal bundling and code transforms to use Vite's Oxc-based
transformWithOxcand Rolldown instead of esbuild. These packages no longer depend on esbuild directly.
8.2.8
7 Oct 2026Fixes Netlify Image CDN patterns generated from
image.remotePatternspathnames ending in/**so they only match paths below that directory, consistent with Astro's own pattern matching. Previously, a pattern like/public/**also matched sibling paths sharing the prefix, such as/public-assets/.
Patch Changes
Fixes Netlify Image CDN patterns generated from
image.remotePatternspathnames ending in/**so they only match paths below that directory, consistent with Astro's own pattern matching. Previously, a pattern like/public/**also matched sibling paths sharing the prefix, such as/public-assets/.
8.2.7
6 Oct 2026Only updates dependencies:@astrojs/internal-helpers 0.12.0@astrojs/underscore-redirects 1.0.4
8.2.6
16 Sep 2026Fixes skew protection to include the build assets directory (
/_astro/by default) inskew-protection.jsonpatterns, preventing lazy-hydrated islands from loading duplicate framework instances after a redeploy
Patch Changes
Fixes skew protection to include the build assets directory (
/_astro/by default) inskew-protection.jsonpatterns, preventing lazy-hydrated islands from loading duplicate framework instances after a redeploy
8.2.5
31 Aug 2026Only updates dependencies:@astrojs/internal-helpers 0.11.0@astrojs/underscore-redirects 1.0.4
8.2.4
24 Aug 2026Fixes generated Netlify Image CDN allowlists to reject remote URLs that contain an allowed image origin only within their path or query string
Patch Changes
Fixes generated Netlify Image CDN allowlists to reject remote URLs that contain an allowed image origin only within their path or query string
8.2.1 – 8.2.33 releases that only update dependencies@astrojs/internal-helpers 0.10.4@astrojs/underscore-redirects 1.0.4Show each
8.2.0
6 Aug 2026When
session: falseis set inastro.config, the adapter no longer auto-wires the Netlify Blobs session driver. Combined with the matchingastrochange, this lets the session runtime tree-shake out of the function bundle.
Minor Changes
When
session: falseis set inastro.config, the adapter no longer auto-wires the Netlify Blobs session driver. Combined with the matchingastrochange, this lets the session runtime tree-shake out of the function bundle.
8.1.3
28 Jul 2026Only updates dependencies:@astrojs/internal-helpers 0.10.2@astrojs/underscore-redirects 1.0.3
8.1.2
13 Jul 2026Fixes the generated Netlify Image CDN
remote_imagespatterns so that regex metacharacters (such as.) inimage.remotePatterns(hostname,pathname) andimage.domainsare matched literally instead of behaving like wildcards. This makes the generated patterns consistent with how Astro matches these values elsewhere.
Patch Changes
Fixes the generated Netlify Image CDN
remote_imagespatterns so that regex metacharacters (such as.) inimage.remotePatterns(hostname,pathname) andimage.domainsare matched literally instead of behaving like wildcards. This makes the generated patterns consistent with how Astro matches these values elsewhere.
8.1.1
2 Jul 2026Only updates dependencies:@astrojs/internal-helpers 0.10.1@astrojs/underscore-redirects 1.0.3
8.1.0
1 Jul 2026Adds
edgeFunctionsto thedevFeaturesadapter option, allowing users to disable Netlify Edge Function emulation duringastro devSome npm packages that access the filesystem at initialization (e.g.
node-html-parser) fail inside the edge function sandbox with "Reading or writing files with Edge Functions is not supported yet." You can now disable edge function emulation to avoid this error:import netlify from '@astrojs/netlify'; import { defineConfig } from 'astro/config'; export default defineConfig({ adapter: netlify({ devFeatures: { edgeFunctions: false, }, }), });Edge functions will still work in production builds and via
netlify dev.Fixes an issue where the
peerDependenciesfield used incorrect dependencies.
Minor Changes
Adds
edgeFunctionsto thedevFeaturesadapter option, allowing users to disable Netlify Edge Function emulation duringastro devSome npm packages that access the filesystem at initialization (e.g.
node-html-parser) fail inside the edge function sandbox with "Reading or writing files with Edge Functions is not supported yet." You can now disable edge function emulation to avoid this error:import netlify from '@astrojs/netlify'; import { defineConfig } from 'astro/config'; export default defineConfig({ adapter: netlify({ devFeatures: { edgeFunctions: false, }, }), });Edge functions will still work in production builds and via
netlify dev.
Patch Changes
Fixes an issue where the
peerDependenciesfield used incorrect dependencies.
8.0.0
22 Jun 2026- Breaking
Upgrade to Vite v8
Adds a CDN cache provider for Astro route caching on Netlify
Triggers beta prereleases for packages that are still on alpha
Major Changes
- Breaking
Upgrade to Vite v8
Minor Changes
Adds a CDN cache provider for Astro route caching on Netlify
Caching responses
Use `Astro.cache.set()` in your pages and API routes to cache responses on Netlify's edge network. The provider uses [Netlify's durable cache](https://docs.netlify.com/platform/caching/#durable-directive) so cached responses are shared across all edge nodes, reducing function invocations. ```astro --- Astro.cache.set({ maxAge: 300, tags: ['products'] }); const data = await fetchProducts(); --- <ProductList items={data} /> ``` You can also set cache rules for groups of routes in your config: ```js cache: { provider: cacheNetlify() }, routeRules: { '/products/[...slug]': { maxAge: 3600, tags: ['products'] }, '/api/[...path]': { maxAge: 60, swr: 600 }, }, ```Invalidation
Purge cached responses by tag or path from any API route or server endpoint: ```ts // src/pages/api/purge.ts export async function POST({ request, cache }) { await cache.invalidate({ tags: ['products'] }); return new Response('Purged'); } // Path-based invalidation await cache.invalidate({ path: '/products/123' }); ``` Both tag-based and path-based invalidation are supported.Patch Changes
Triggers beta prereleases for packages that are still on alpha
- 7.x
7.0.13
10 Jun 2026Hardens
remotePatternsregex generation to match canonical wildcard semantics more strictly
Patch Changes
Hardens
remotePatternsregex generation to match canonical wildcard semantics more strictly
7.0.12
2 Jun 2026Fixes a link in the documentation specifying where to open an issue for the adapter.
Patch Changes
Fixes a link in the documentation specifying where to open an issue for the adapter.
7.0.11
28 May 2026Only updates dependencies:@astrojs/internal-helpers 0.10.0@astrojs/underscore-redirects 1.0.3
7.0.10
18 May 2026Updates
typescriptto v6. No changes are needed from users.
Patch Changes
Updates
typescriptto v6. No changes are needed from users.
7.0.9
13 May 2026Updates internal dependencies
Patch Changes
Updates internal dependencies
7.0.8
22 Apr 2026Only updates dependencies:@astrojs/internal-helpers 0.9.0@astrojs/underscore-redirects 1.0.3
7.0.7
15 Apr 2026Fixes a bug where remote image dimensions were not validated during static builds on Netlify.
Patch Changes
Fixes a bug where remote image dimensions were not validated during static builds on Netlify.
7.0.6
1 Apr 2026Only updates a dependency:@astrojs/underscore-redirects 1.0.3
7.0.5
26 Mar 2026Fixes server islands returning 404 in production when using
output: 'static'(the default)
Patch Changes
Fixes server islands returning 404 in production when using
output: 'static'(the default)
7.0.4
20 Mar 2026Only updates a dependency:@astrojs/underscore-redirects 1.0.2
7.0.3
16 Mar 2026Updates the Astro
peerDependencies#astroto be6.0.0.
Patch Changes
Updates the Astro
peerDependencies#astroto be6.0.0.
7.0.2
12 Mar 2026Fixes an issue where the adapter would cause a series of warnings during the build.
Patch Changes
Fixes an issue where the adapter would cause a series of warnings during the build.
7.0.1
10 Mar 2026Only updates a dependency:@astrojs/underscore-redirects 1.0.1
7.0.0
10 Mar 2026- Breaking
Astro v6.0 upgrades to Vite v7.0 as the development server and production bundler - (v6 upgrade guidance)
- Deprecated
Adds new
middlewareModeadapter feature and deprecatesedgeMiddlewareoptionThe
edgeMiddlewareoption is now deprecated and will be removed in a future major release, so users should transition to using the newmiddlewareModefeature as soon as possible.export default defineConfig({ adapter: netlify({ - edgeMiddleware: true + middlewareMode: 'edge' }) }) Stabilizes the adapter feature
experimentalStatiHeaders. If you were using this feature in any of the supported adapters, you'll need to change the name of the flag:export default defineConfig({ adapter: netlify({ - experimentalStaticHeaders: true + staticHeaders: true }) })
Major Changes
- Breaking
Astro v6.0 upgrades to Vite v7.0 as the development server and production bundler - (v6 upgrade guidance)
Minor Changes
Stabilizes the adapter feature
experimentalStatiHeaders. If you were using this feature in any of the supported adapters, you'll need to change the name of the flag:export default defineConfig({ adapter: netlify({ - experimentalStaticHeaders: true + staticHeaders: true }) })Adds support for the
fitoption to the image service- Deprecated
Adds new
middlewareModeadapter feature and deprecatesedgeMiddlewareoptionThe
edgeMiddlewareoption is now deprecated and will be removed in a future major release, so users should transition to using the newmiddlewareModefeature as soon as possible.export default defineConfig({ adapter: netlify({ - edgeMiddleware: true + middlewareMode: 'edge' }) }) Adds new session driver object shape
For greater flexibility and improved consistency with other Astro code, session drivers are now specified as an object:
-import { defineConfig } from 'astro/config' +import { defineConfig, sessionDrivers } from 'astro/config' export default defineConfig({ session: { - driver: 'redis', - options: { - url: process.env.REDIS_URL - }, + driver: sessionDrivers.redis({ + url: process.env.REDIS_URL + }), } })Specifying the session driver as a string has been deprecated, but will continue to work until this feature is removed completely in a future major version. The object shape is the current recommended and documented way to configure a session driver.
Updates the implementation to use the new Adapter API
Removes the
experimental.cspflag and replaces it with a new configuration optionsecurity.csp- (v6 upgrade guidance)
Patch Changes
Update to Astro 6 beta
Adds a new
clientAddressoption to thecreateContext()functionProviding this value gives adapter and middleware authors explicit control over the client IP address. When not provided, accessing
clientAddressthrows an error consistent with other contexts where it is not set by the adapter.Additionally, both of the official Netlify and Vercel adapters have been updated to provide this information in their edge middleware.
import { createContext } from 'astro/middleware'; createContext({ clientAddress: context.headers.get('x-real-ip'), });Fixes builds that were failing with "Entry module cannot be external" error when using the Netlify adapter
This error was preventing sites from building after recent internal changes. Your builds should now work as expected without any changes to your code.
Fixes server-rendered routes returning 404 errors
A configuration error in the build output prevented Netlify from correctly routing requests to server-rendered pages, causing them to return 404 errors. This fix ensures that all server routes are properly handled by the Netlify SSR function.
Fixes the image CDN being used in development despite being disabled in certain cases
Updates to use the new Adapter API
Fixes a case where
build.serverEntrywould not be respected when using the new Adapter APIUpdates to new Adapter API introduced in v6
- 6.x
6.6.5
10 Mar 2026Only updates dependencies:@astrojs/internal-helpers 0.7.6@astrojs/underscore-redirects 1.0.0
6.6.4
16 Jan 2026Fixes the links to Astro Docs so that they match the current docs structure.
Patch Changes
Fixes the links to Astro Docs so that they match the current docs structure.
6.6.3
26 Nov 2025Fixes a case where disabling the local image CDN wasn't possible
Patch Changes
Fixes a case where disabling the local image CDN wasn't possible
6.6.2
20 Nov 2025Upgrades the
@netlify/functionsdependency to v5. This removes 82 MB and 310 dependencies from the dependency tree
Patch Changes
Upgrades the
@netlify/functionsdependency to v5. This removes 82 MB and 310 dependencies from the dependency tree
6.6.1
17 Nov 2025Only updates dependencies:@astrojs/internal-helpers 0.7.5@astrojs/underscore-redirects 1.0.0
6.6.0
23 Oct 2025Enables Netlify's skew protection feature for Astro sites deployed on Netlify. Skew protection ensures that your site's client and server versions stay synchronized during deployments, preventing issues where users might load assets from a newer deployment while the server is still running the older version.
When you deploy to Netlify, the deployment ID is now automatically included in both asset requests and API calls, allowing Netlify to serve the correct version to every user. These are set for built-in features (Actions, View Transitions, Server Islands, Prefetch). If you are making your own fetch requests to your site, you can include the header manually using the
DEPLOY_IDenvironment variable:const response = await fetch('/api/endpoint', { headers: { 'X-Netlify-Deploy-ID': import.meta.env.DEPLOY_ID, }, });
Minor Changes
Enables Netlify's skew protection feature for Astro sites deployed on Netlify. Skew protection ensures that your site's client and server versions stay synchronized during deployments, preventing issues where users might load assets from a newer deployment while the server is still running the older version.
When you deploy to Netlify, the deployment ID is now automatically included in both asset requests and API calls, allowing Netlify to serve the correct version to every user. These are set for built-in features (Actions, View Transitions, Server Islands, Prefetch). If you are making your own fetch requests to your site, you can include the header manually using the
DEPLOY_IDenvironment variable:const response = await fetch('/api/endpoint', { headers: { 'X-Netlify-Deploy-ID': import.meta.env.DEPLOY_ID, }, });
6.5.13
14 Oct 2025Fixes a bug that caused too many files to be bundled in SSR
Patch Changes
Fixes a bug that caused too many files to be bundled in SSR
6.5.12
9 Oct 2025Fixes a bug that caused too many files to be bundled in SSR
Patch Changes
Fixes a bug that caused too many files to be bundled in SSR
6.5.11
22 Sep 2025Only updates dependencies:@astrojs/internal-helpers 0.7.3@astrojs/underscore-redirects 1.0.0
6.5.10
8 Sep 2025Updates
viteversion to fix CVE
Patch Changes
Updates
viteversion to fix CVE
6.5.9
27 Aug 2025Updates
context.netlifyto implement all its properties
Patch Changes
Updates
context.netlifyto implement all its properties
6.5.8
22 Aug 2025- Breaking
Increases the minimum supported version of Astro to 5.7.0
Patch Changes
- Breaking
Increases the minimum supported version of Astro to 5.7.0
6.5.7
15 Aug 2025Only updates dependencies:@astrojs/internal-helpers 0.7.2@astrojs/underscore-redirects 1.0.0
6.5.6
5 Aug 2025Fixes a bug where the adapter would cause a runtime error when calling
astro buildin CI environments.
6.5.4 – 6.5.52 releases that only update dependencies@astrojs/internal-helpers 0.7.1@astrojs/underscore-redirects 1.0.0Show each
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.