SvelteKit's new Cloudflare adapter drops Pages for Workers
adapter-cloudflare 9.0.0 removes Cloudflare Pages support entirely, so adapter-auto now targets Workers instead. SvelteKit async mode also gained a breaking getAbortSignal rule.
Svelte’s December roundup, posted on 1 December, confirms that adapter-cloudflare@9.0.0 and adapter-auto@9.0.0 have removed Cloudflare Pages support. adapter-auto now builds for Cloudflare Workers instead. A new worker option controls whether a Worker is built, Wrangler’s main setting is set automatically, and the old fallback option is gone in favour of Wrangler’s assets.not_found_handling. paths.assets is now rejected outright, since it can’t be served when previewing in workerd.
The same post flags a second breaking change, this time in Svelte core: as of 5.58.1, getAbortSignal() must now be called before any await in experimental async mode. The fix behind it gives each pending batch its own view of reactive values, closing a run of bugs around stale values, infinite loops and lost updates when several async updates were in flight at once.
# adapter-cloudflare@9.0.0, adapter-auto@9.0.0
# Cloudflare Pages support removed; builds target Workers
Why it matters: if your SvelteKit app deploys to Cloudflare Pages, upgrading these adapters breaks the build until you migrate to the Workers target. Svelte’s docs cover the move at /docs/kit/adapter-cloudflare#Migrating-from-Cloudflare-Pages. Anyone using experimental async mode with getAbortSignal() needs to check call order too.
The caveat: both changes only bite on upgrade. Pin your adapter and Svelte versions if you’re not ready to migrate yet.