diff options
author | 2025-02-21 11:40:27 +0400 | |
---|---|---|
committer | 2025-02-21 07:40:27 +0000 | |
commit | 065157cac73e176cd6da9b8b0a157359a20ebebd (patch) | |
tree | c16d6c0e1bf9ed7287e6e877cc8a9086638b1748 /packages/integrations/cloudflare/src | |
parent | 7cb718969801f81892be0726faf1935d0c7e9bfd (diff) | |
download | astro-065157cac73e176cd6da9b8b0a157359a20ebebd.tar.gz astro-065157cac73e176cd6da9b8b0a157359a20ebebd.tar.zst astro-065157cac73e176cd6da9b8b0a157359a20ebebd.zip |
feat(cloudflare): Includes onerror passthrough (#13201)
* ✨ Includes onerror passthrough param
* :package: Includes Changeset
Diffstat (limited to 'packages/integrations/cloudflare/src')
-rw-r--r-- | packages/integrations/cloudflare/src/entrypoints/image-service.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/integrations/cloudflare/src/entrypoints/image-service.ts b/packages/integrations/cloudflare/src/entrypoints/image-service.ts index fa970c45f..d4cf8ff93 100644 --- a/packages/integrations/cloudflare/src/entrypoints/image-service.ts +++ b/packages/integrations/cloudflare/src/entrypoints/image-service.ts @@ -7,7 +7,7 @@ import { isESMImportedImage, isRemoteAllowed } from '../utils/assets.js'; const service: ExternalImageService = { ...baseService, getURL: (options, imageConfig) => { - const resizingParams = []; + const resizingParams = ['onerror=redirect']; if (options.width) resizingParams.push(`width=${options.width}`); if (options.height) resizingParams.push(`height=${options.height}`); if (options.quality) resizingParams.push(`quality=${options.quality}`); |