Repository navigation
@cloudflare/vite-plugin@2.0.0-rc.6
Pre-releaseMinor Changes
-
#17161
e46c7c6Thanks @thisisamank! - Add RealtimeKit bindingsBind an existing RealtimeKit app to a Worker in your Wrangler configuration file:
RealtimeKit has no local simulator, so set
remote: trueto use the real app during local development. Calls during development, including calls on returned meetings, go through the existing remote bindings proxy. The experimental configuration API supportsbindings.realtimeKit({ id: "<APP_ID>", dev: { remote: true } }), and thewrangler-to-cfcodemod convertsrealtimekitentries. Deployments upload only the binding name andapp_id.wrangler typesgeneratesRealtimeKitBindingfor these bindings.
Patch Changes
-
#17203
41bacf7Thanks @jamesopstad! - Acceptfedramp-highinCLOUDFLARE_COMPLIANCE_REGIONcloudflare.config.tswrites the FedRAMP High region asfedramp-high, butCLOUDFLARE_COMPLIANCE_REGIONonly acceptedfedramp_highand rejected the other spelling withExpected "fedramp-high" to be one of ["public","fedramp_high"]. Both spellings are now accepted and mean the same region, so a value copied fromcloudflare.config.tsintoCLOUDFLARE_COMPLIANCE_REGIONworks. -
#17140
b645124Thanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-24Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
-
#17160
8d3e953Thanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-25Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
-
#17220
b89dfcfThanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-27Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
-
#17205
e351be9Thanks @jamesopstad! - PreferCLOUDFLARE_ACCOUNT_IDto the configuredaccountIdin the Cloudflare Vite and Vitest plugins and incf devWhen resolving an account for remote bindings, and for tunnels in the Vite plugin, the plugins and
cf devused theaccountIdincloudflare.config.tseven whenCLOUDFLARE_ACCOUNT_IDwas set to a different account. This was the reverse of othercfcommands, where the environment variable takes precedence.CLOUDFLARE_ACCOUNT_IDnow takes precedence there too.wranglercommands, and Vitest plugin projects that use a Wrangler configuration file, are unchanged: the configuredaccount_idstill takes precedence. -
#17166
927f070Thanks @edmundhung! - Load only.env,.env.localand.dev.varswhen previewing Build Output that records no modeThis matches
cf deploy. Build Output from the Vite plugin always records a mode, so it loads the same files as before. -
#17205
e351be9Thanks @jamesopstad! - Apply changes toCLOUDFLARE_*variables in.envfiles when Vite restartsThe plugin copies
CLOUDFLARE_*variables from.envfiles intoprocess.env. When a.envfile changes, Vite restarts in the same process. The values copied before the restart then took precedence over the edited file, as if they had been set in the shell. A variable changed in or removed from a.envfile now takes effect after the restart. Variables set in the shell still take precedence. -
Updated dependencies [
07d2051,b645124,8d3e953,b89dfcf,b645124,8d3e953,b89dfcf,b645124,927f070,43da328,e46c7c6]:- miniflare@5.20261127.0-beta
- @cloudflare/build-output-utils@1.0.0-rc.5
- @cloudflare/config@1.0.0-rc.5
- @cloudflare/runtime-types@0.1.35
{ "realtimekit": [ { "binding": "RTK", "app_id": "<APP_ID>", "remote": true } ] }