@astrojs/cloudflare 10.0.3 → 10.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import type { AstroIntegration } from 'astro';
2
2
  export type { Runtime } from './entrypoints/server.js';
3
3
  export type Options = {
4
4
  /** Options for handling images. */
5
- imageService?: 'passthrough' | 'cloudflare' | 'compile';
5
+ imageService?: 'passthrough' | 'cloudflare' | 'compile' | 'custom';
6
6
  /** Configuration for `_routes.json` generation. A _routes.json file controls when your Function is invoked. This file will include three different properties:
7
7
  *
8
8
  * - version: Defines the version of the schema. Currently there is only one version of the schema (version 1), however, we may add more in the future and aim to be backwards compatible.
@@ -16,6 +16,8 @@ export function setImageConfig(service, config, command, logger) {
16
16
  service: sharpImageService(),
17
17
  endpoint: command === 'dev' ? undefined : '@astrojs/cloudflare/image-endpoint',
18
18
  };
19
+ case 'custom':
20
+ return { ...config };
19
21
  default:
20
22
  if (config.service.entrypoint === 'astro/assets/services/sharp' ||
21
23
  config.service.entrypoint === 'astro/assets/services/squoosh') {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astrojs/cloudflare",
3
3
  "description": "Deploy your site to Cloudflare Workers/Pages",
4
- "version": "10.0.3",
4
+ "version": "10.1.0",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
7
7
  "author": "withastro",