@astrojs/netlify
8.2.14 · 13 Nov 2026MIT71.2k / weekRepositoryHomepagenpmAtom feed
Your version
2.6.0 is the newest release of 2.x.
In short
1 new1 fixed1 internal
Security
2 advisories affect 2.2.3; 8.1.2 fixes them
- 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
Enable experimental support for hybrid SSR with pre-rendering enabled by default
astro.config.mjs
import { defineConfig } from 'astro/config'; export defaultdefineConfig({ output: 'hybrid', experimental: { hybridOutput: true, }, })Then add
export const prerender = falseto any page or endpoint you want to opt-out of pre-rendering.src/pages/contact.astro
--- export const prerender = false; if (Astro.request.method === 'POST') { // handle form submission } --- <form method="POST"> <input type="text" name="name" /> <input type="email" name="email" /> <button type="submit">Submit</button> </form>Specify
"files"field to only publish necessary files
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.