FRONTEND
Astro v13.4.0
RESUMEN
Minor Changes - #16519 `1b1c218` Thanks @louisescher! - Adds support for redirecting URLs in remote image optimization.
Descripción Detallada
Minor Changes - #16519 `1b1c218` Thanks @louisescher! - Adds support for redirecting URLs in remote image optimization. Previously, when a remote image URL meant to be optimized by Astro led to a redirect, Astro would fail silently and ignore the redirect. Now, Astro tracks up to 10 redirects for these images. If any of the redirects are not covered by a pattern in `image.remotePatterns` or a domain in `image.domains`, Astro will fail with a helpful error message. In the following example, the first image would be loaded successfully, while the second would lead to Astro throwing an error: ```mjs export default defineConfig({ image: { domains: ['example.com', 'cdn.example.com'], }, }); ``` ```tsx { / Redirects to / } ; { / Redirects to / } ; ``` In cases where all redirects to HTTPS hosts should be trusted, the following configuration for `image.remotePatterns` can be used:
Explicación con IA
Genera un resumen en lenguaje claro de los cambios de este release.
Releases Relacionados
FRONTEND
Astro v2.16.8
### Patch Changes - [#16627](https://github.com/withastro/astro/pull/16627) [`5778cb7`](https://github.com/withastro/astro/commit/5778cb75515112e605da2aba5331646818802bc8) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Fixes unintended dependency on the `typescript` package being availa
FRONTEND
Astro v3.3.2
### Patch Changes - [#16260](https://github.com/withastro/astro/pull/16260) [`354e231`](https://github.com/withastro/astro/commit/354e23191f6a85fd466b512d378959cc12aebb01) Thanks [@gameroman](https://github.com/gameroman)! - Refactors internal config logic to remove the `dlv` dependency in favor