@astrojs/netlify@8.0.0
📦 astroView on GitHub →
✨ 5 features🐛 1 fixes🔧 6 symbols
Summary
This release upgrades Astro to use Vite v8 and introduces a new CDN cache provider for Netlify, enabling shared, edge-network caching for route responses.
Migration Steps
- If using the new Netlify cache provider, import `cacheNetlify` from `@astrojs/netlify/cache` and configure it in `astro.config.mjs` under the `cache.provider` setting.
✨ New Features
- Upgrade to Vite v8.
- Adds a CDN cache provider for Astro route caching on Netlify, accessible via `cacheNetlify()` from `@astrojs/netlify/cache`.
- Introduces `Astro.cache.set()` for caching responses in pages and API routes using the Netlify provider.
- Allows setting cache rules for groups of routes via `routeRules` in the configuration (e.g., setting `maxAge`, `tags`, or `swr`).
- Supports cache invalidation by tag or path from any API route or server endpoint using `cache.invalidate()`.
🐛 Bug Fixes
- Triggers beta prereleases for packages that are still on alpha.