Astro: @astrojs/cloudflare@13.4.0 Release

Release date:
May 7, 2026
Previous version:
@astrojs/cloudflare@13.3.1 (released May 4, 2026)
Magnitude:
5,536 Diff Delta
Contributors:
9 total committers
Data confidence:
Commits:

Top Contributors in @astrojs/cloudflare@13.4.0

matthewp
astrobot-houston
ematipico
ljharb
louisescher
Princesseuh
ArmandPhilippot
rururux
yanthomasdev

Directory Browser for @astrojs/cloudflare@13.4.0

All files are compared to previous version, @astrojs/cloudflare@13.3.1. Click here to browse diffs between other versions.

Loading File Browser...

Release Notes Published

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:

    export default defineConfig({
      image: {
        domains: ['example.com', 'cdn.example.com'],
      },
    });
    
    {
      /* Redirects to https://cdn.example.com/assets/image.png: */
    }
    <Image
      src="https://example.com/assets/image.png"
      width="1920"
      height="1080"
      alt="An example image."
    />;
    
    {
      /* Redirects to https://malicious.com/image.png: */
    }
    <Image
      src="https://example.com/bad-image.png"
      width="1920"
      height="1080"
      alt="An example image."
    />;
    

    In cases where all redirects to HTTPS hosts should be trusted, the following configuration for image.remotePatterns can be used:

    export default defineConfig({
      image: {
        remotePatterns: [
          {
            protocol: 'https',
          },
        ],
      },
    });
    

Patch Changes