Repository navigation
@cloudflare/config@1.0.0-rc.3
Pre-releaseMinor Changes
-
#16679
be6aa81Thanks @mglewis! - Addimages.url_transformationsto the Wrangler configurationThe
imagesblock now accepts aurl_transformationsobject for controlling/cdn-cgi/image/transformations on requests served by a Worker.enabledis required, andallowed_originsoptionally lists the origins images may be fetched from (use["*"]to allow any origin).bindingis now optional, sourl_transformationscan be configured without an Images binding:Like the rest of the
imagesblock,url_transformationsis not inherited by named environments, and must be specified in each environment that needs it.cloudflare.config.tsgains the equivalent setting as a top-levelimagesfield on the Worker, with the Images binding remaining inenv:export default defineConfig({ worker: { name: "my-worker", compatibilityDate: "2026-11-01", images: { urlTransformations: { enabled: true, allowedOrigins: ["images.example.com"], }, }, }, });
cf migratecarriesimages.url_transformationsover to this field.This change adds configuration and validation only.
url_transformationsis not supported inpreviews.
Patch Changes
-
#17031
95fd4c2Thanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-19Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
{ "images": { "url_transformations": { "enabled": true, "allowed_origins": ["images.example.com"] } } }