You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cloudflare): resolve vite plugin config once across call sites (#16868)
* fix(cloudflare): resolve vite plugin config once across call sites
User options like remoteBindings, inspectorPort, persistState, configPath,
and auxiliaryWorkers were silently dropped during astro preview because the
preview entrypoint only received the adapter-computed half of the config.
Resolve the full @cloudflare/vite-plugin config once at integration setup
time so every call site (dev/build, prerenderer, preview) spreads a single
merged object and cannot accidentally drop user options.
* test(cloudflare): add regression test for remoteBindings during astro preview
Verifies that astro preview honors remoteBindings: false when a wrangler
binding is flagged remote: true. Confirmed to fail before the fix in
b4946e2 — wrangler.maybeStartOrUpdateRemoteProxySession throws from the
@cloudflare/vite-plugin preview path because the option is dropped.
* chore: cleanup comments
Fixes user options passed to `cloudflare({...})` (`remoteBindings`, `inspectorPort`, `persistState`, `configPath`, `auxiliaryWorkers`) being silently ignored during `astro preview`. The adapter now resolves the full `@cloudflare/vite-plugin` config once at integration setup time and reuses that single resolved value across the dev/build plugin, the prerenderer's preview server, and the `astro preview` entrypoint, so user options can no longer be dropped at one of the call sites.
0 commit comments