Skip to content

@astrojs/cloudflare@14.4.10

Choose a tag to compare

@astrobot-houston astrobot-houston released this 01 Dec 18:51
· 8 commits to main since this release
72edcee

Patch Changes

  • #18747 eeea99b Thanks @VaibhavBajpaij! - Fixes prerendered pages returning a 404 in astro dev when using a custom worker entrypoint with cf() from @astrojs/cloudflare/fetch

  • 62e631d Thanks @matthewp! - Fixes image.domains and image.remotePatterns entries without a protocol allowing data URIs written with a host, such as data://cdn.example.com/,....

    image.domains entries and image.remotePatterns entries without a protocol now only allow http and https, the same as security.allowedDomains. To allow data URIs, add a pattern with protocol: 'data'. This also applies to remotePatterns: [{}], which no longer allows data URIs on its own:

    // astro.config.mjs
    export default defineConfig({
      image: {
        remotePatterns: [{}, { protocol: 'data' }],
      },
    });

    A remotePatterns entry with a port now also matches URLs that use that protocol's default port, so port: '443' matches https://example.com.

  • Updated dependencies [d2b3c96, 62e631d]:

    • @astrojs/underscore-redirects@1.0.5
    • @astrojs/internal-helpers@0.13.3