Skip to content

Commit b606848

Browse files
Update .changeset/fix-zone-on-unstable-get-miniflare-worker-options.md
Co-authored-by: James Opstad <13586373+jamesopstad@users.noreply.github.com>
1 parent 46b4aa7 commit b606848

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.changeset/fix-zone-on-unstable-get-miniflare-worker-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ When running a Worker via `@cloudflare/vite-plugin`, `@cloudflare/vitest-pool-wo
1010

1111
The root cause was that `unstable_getMiniflareWorkerOptions` (and `getPlatformProxy`) did not propagate a `zone` value onto the worker options they return, so Miniflare fell back to its default. The returned worker options now derive `zone` from the hostname of the first configured `route`. `@cloudflare/vite-plugin` and `@cloudflare/vitest-pool-workers` pick this up automatically with no API changes.
1212

13-
Note: `dev.host` is intentionally not consulted by these code paths — the `dev` config block is specific to `wrangler dev`. If you need a custom `CF-Worker` host under `vite dev`, `vitest-pool-workers`, or `getPlatformProxy`, configure a `route` instead.
13+
Note: `dev.host` is intentionally not consulted by these code paths — the `dev` config block is specific to `wrangler dev`.

0 commit comments

Comments
 (0)