@astrojs/vercel@11.0.0
📦 astroView on GitHub →
✨ 5 features🐛 1 fixes🔧 5 symbols
Summary
This release upgrades Astro to use Vite v8 and introduces a new CDN cache provider for Vercel, enabling route caching and invalidation via tags or paths.
Migration Steps
- If using the new Vercel CDN caching feature, import `cacheVercel` from `@astrojs/vercel/cache` and configure it in `astro.config.mjs`.
- To cache responses, use `Astro.cache.set()` in your components/routes.
- To invalidate cache, use `cache.invalidate({ tags: [...] })` or `cache.invalidate({ path: '...' })` in API routes.
✨ New Features
- Upgraded core dependency to Vite v8.
- Added a CDN cache provider for Astro route caching on Vercel, configurable via `@astrojs/vercel/cache`.
- Introduced `Astro.cache.set()` for caching responses on Vercel's edge network in pages and API routes.
- Added support for setting cache rules via `routeRules` in the configuration for specific route patterns.
- Implemented cache invalidation by tag or path via `cache.invalidate()` in API routes or server endpoints.
🐛 Bug Fixes
- Triggered beta prereleases for packages that were previously on alpha.