@astrojs/netlify
8.2.14 · 13 Nov 2026MIT71.2k / weekRepositoryHomepagenpmAtom feed
6.6.5 is the newest release of 6.x.
In short
1 new1 fixed1 internal
Security
3 advisories affect 6.5.1; 8.2.4 fixes them
- ModerateAstro: Netlify Image CDN allowlist bypass enables SSRFGHSA-4233-jc72-56c5 · 30 Sep 2026Fixed in 8.2.4
- Moderate@astrojs/netlify broadens Astro image.remotePatterns in Netlify Image CDN configGHSA-529g-xq4f-cw38 · 16 Jun 2026Fixed in 7.0.13
- Low@astrojs/netlify generates an overly-broad Netlify Image CDN allowlist because remotePatterns.pathname metacharacters are not escapedGHSA-hp3v-mfqw-h74c · 20 Jul 2026Fixed in 8.1.2
Release note
Patch Changes
Fixes a bug that caused remote images to sometimes not display correctly when using the Netlify Image CDN in local dev
Adds a new
devFeaturesconfiguration option to control some of the behaviors introduced in@astrojs/netlify@6.5.0, which introduced Netlify production features into the dev environment.You can now individually configure whether or not to populate your environment with the variables from your linked Netlify site (now disabled by default), and use a local version of the Netlify Image CDN for images (still enabled by default) when running
astro dev.Additionally, the adapter no longer injects environment variables from Netlify by default when running
astro dev.@astrojs/netlify@6.5.0introduced a potentially breaking change that enabled injecting Netlify environment variables inastro devby default. This could lead to unexpected behavior in Astro projects that do not expect these variables to be present. This now defaults to disabled, and users can enable it by setting thedevFeatures.environmentVariablesoption in their Astro config. Similarly, you can usedevFeatures.imagesto disable using the Netlify Image CDN locally if needed:import { defineConfig } from 'astro/config'; import netlify from '@astrojs/netlify'; export default defineConfig({ adapter: netlify({ devFeatures: { environmentVariables: true, images: false, }, }), });You can also set
devFeaturestotrueorfalseto enable or disable all configurable dev features:import { defineConfig } from 'astro/config'; import netlify from '@astrojs/netlify'; export default defineConfig({ adapter: netlify({ devFeatures: true, }), });
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.