@cloudflare/config@0.3.0
Minor Changes
-
#14724
a50f73aThanks @jamesopstad! - Add asettingsexport to the experimentalcloudflare.config.tsconfigAccount-level settings (
accountId,complianceRegion) now live in a dedicated, namedsettingsexport authored viadefineSettings, rather than on the Worker config. Acloudflare.config.tscan export at most onesettingsobject; the Worker itself is thedefaultexport.// cloudflare.config.ts import { defineSettings, defineWorker } from "wrangler/experimental-config"; import * as entrypoint from "./src/index.ts" with { type: "cf-worker" }; export const settings = defineSettings({ accountId: "<your-account-id>", }); export default defineWorker({ name: "my-worker", entrypoint, compatibilityDate: "2026-05-18", });
This is only used behind the experimental new-config path (
wrangler --experimental-new-configand the@cloudflare/vite-pluginexperimental.newConfigoption).