FRONTEND
Astro v11.0.0
RESUMEN
Major Changes - #15819 `cafec4e` Thanks @delucis! - Upgrade to Vite v8 Minor Changes - (
Descripción Detallada
Major Changes - #15819 `cafec4e` Thanks @delucis! - Upgrade to Vite v8 Minor Changes - #16335 `9a53f77` Thanks @ascorbic! - Adds a CDN cache provider for Astro route caching on Vercel #### Setup Import `cacheVercel()` from `@astrojs/vercel/cache` and set it as your cache provider: ```js import { defineConfig } from 'astro/config'; import vercel from '@astrojs/vercel'; import { cacheVercel } from '@astrojs/vercel/cache'; export default defineConfig({ adapter: vercel(), cache: { provider: cacheVercel(), }, }); ``` #### Caching responses Use `Astro.cache.set()` in your pages and API routes to cache responses on Vercel's edge network. The provider sets `Vercel-CDN-Cache-Control` and `Vercel-Cache-Tag` headers on responses. ```astro --- Astro.cache.set({ maxAge: 300, tags: ['products'] }); const data = await fetchProducts(); --- ``` You can also set cache rules for groups of routes in your config: ```js cache: { provider: cacheVercel() }, routeR
Actualización a Astro v11.0.0 con Vite v8.
- Actualización a Vite v8.
- Dependencias actualizadas, incluyendo astro@7.0.0-alpha.0.
A quién le importa
Todos los que usan Astro y Vite.
Generado por IA · puede contener errores
Releases Relacionados
FRONTEND
Astro v14.1.7
### Patch Changes - [#17543](https://github.com/withastro/astro/pull/17543) [`bbc1ec9`](https://github.com/withastro/astro/commit/bbc1ec9715160e25eb6a6fee2e133386414c0c00) Thanks [@ematipico](https://github.com/ematipico)! - Fixes a bug where Cloudflare couldn't load chunked collections via `expe
FRONTEND
Astro v7.1.6
### Patch Changes - [#17536](https://github.com/withastro/astro/pull/17536) [`ff97b86`](https://github.com/withastro/astro/commit/ff97b86ab02d199af5fe0f6e9984e9919c8276bf) Thanks [@dmgawel](https://github.com/dmgawel)! - Fixes concurrent static builds failing to generate i18n rewrite fallbacks fo