@cloudflare/config@0.3.0
Breaking Changes📦 cloudflare-workersView on GitHub →
⚠ 1 breaking✨ 1 features🔧 3 symbols
Summary
Introduced a dedicated `settings` export in the experimental `cloudflare.config.ts` for account-level configurations. This change enhances the organization of configuration files when using the new-config experimental path.
⚠️ Breaking Changes
- Account-level settings like `accountId` and `complianceRegion` have moved from the main Worker config to a dedicated `settings` export using `defineSettings`. This change is only applicable when using the experimental new-config path (`wrangler --experimental-new-config` or `@cloudflare/vite-plugin` `experimental.newConfig`). To fix this, refactor your `cloudflare.config.ts` to include a `settings` export for these values.
Migration Steps
- If using the experimental new-config path, update your `cloudflare.config.ts` to define account-level settings (e.g., `accountId`, `complianceRegion`) within a `settings` export using `defineSettings`.
✨ New Features
- Added a `settings` export to the experimental `cloudflare.config.ts` config for account-level settings like `accountId` and `complianceRegion`.