Skip to content

fix: read the current Cloudflare proxy after config reloads - #17530

Draft
svelte-triage-bot[bot] wants to merge 2 commits into
mainfrom
triage/kit-17529-cloudflare-lazy-proxy
Draft

svelte-triage-bot[bot] wants to merge 2 commits into
mainfrom
triage/kit-17529-cloudflare-lazy-proxy

Conversation

@svelte-triage-bot

Copy link
Copy Markdown
Contributor
  • The virtual module introduced in #16754 captures a proxy that #17432 now replaces and disposes on Wrangler config changes.
  • Delete the snapshot and read the current global proxy in the env fallback and every availability guard, including both scoped-environment helpers; retain AsyncLocalStorage precedence and prerender errors.
  • Preserve the shared proxy lifetime from #17368, rather than restarting servers or trying to invalidate the cached external module.
  • Cover every env trap, scoped overrides, absent/recreated proxies, and real config reloads. The shared dev/preview stub changes; native production bindings and proxy ownership do not.

Fixes #17529

@pkg-svelte-dev

pkg-svelte-dev Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 981b88b:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/981b88b9fb48885a0b1eb8a0c08be3ad9eed2a1f

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/17530

Note

This PR is from a fork. A maintainer must approve approve each commit before it can be built and installed.

@changeset-bot

changeset-bot Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 981b88b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/adapter-cloudflare Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

adapter-cloudflare: cloudflare:workers keeps using the old platform proxy after the Wrangler config reloads in dev

1 participant