js · @astrojs/netlifyHeads-up
@astrojs/netlify adapter broadens image.remotePatterns matching
The @astrojs/netlify adapter converts Astro's image.
What changed
The @astrojs/netlify adapter converts Astro's image.remotePatterns into Netlify Image CDN regexes with broader semantics: a wildcard hostname like *.example.com becomes an optional subdomain regex (matching apex host), and a wildcard pathname like /ok/* is not end-anchored (matching deeper paths).
Who it affects
Any Astro app deployed with @astrojs/netlify that uses restrictive image.remotePatterns configuration.
What to do today
Review your image.remotePatterns configuration and consider the broader matching behavior. If you rely on strict hostname or pathname matching, apply the remediation described in the advisory: generate regexes that exactly match Astro's canonical semantics and anchor the full URL match.
The trail
Collected→
Audited→
Written→
Published