@astrojs/netlify
8.2.14 · 13 Nov 2026MIT71.2k / weekRepositoryHomepagenpmAtom feed
6.6.5 is the newest release of 6.x.
In short
2 new1 internal
Security
3 advisories affect 6.2.0; 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
Minor Changes
Adds
includedFilesandexcludedFilesconfiguration options to customize SSR function bundle contents.The
includeFilesproperty allows you to explicitly specify additional files that should be bundled with your function. This is useful for files that aren't automatically detected as dependencies, such as:Data files loaded using
fsoperationsConfiguration files
Template files
Similarly, you can use the
excludeFilesproperty to prevent specific files from being bundled that would otherwise be included. This is helpful for:Reducing bundle size
Excluding large binaries
Preventing unwanted files from being deployed
import { defineConfig } from 'astro/config'; import netlify from '@astrojs/netlify'; export default defineConfig({ // ... output: 'server', adapter: netlify({ includeFiles: ['./my-data.json'], excludeFiles: ['./node_modules/package/**/*', './src/**/*.test.js'], }), });See the Netlify adapter documentation for detailed usage instructions and examples.
Automatically configures Netlify Blobs storage when experimental session enabled
If the
experimental.sessionflag is enabled when using the Netlify adapter, Astro will automatically configure the session storage using the Netlify Blobs driver. You can still manually configure the session storage if you need to use a different driver or want to customize the session storage configuration.See the experimental session docs for more information on configuring session storage.
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.