Post

On day 4 of debugging, I think I found a bug either in @astro.build or in the Cloudflare adapter. Base problem: my .astro SSR routes aren‘t picked up in dist/_routes.json:include if I add them to routes.extend.include in Astro config, they are parsed to null in _routes.json

Workaround for Astro SSR with Cloudflare Workers: - build locally - manually add the routes to dist/_routes.json:include[] - wrangler deploy I guess it’s time to open an issue.

I vide-coded a script which runs after the build step and replaces the nulls in _routes.json If I deploy with `pnpx wrangler deploy` it uses wrangler 4.42.0 and SSR works. If I deploy with `pnpm wrangler deploy` it uses wrangler 4.41.0 (pinned locally) and SSR breaks. F M L - what is happening.

omfg it is sufficient to register a single ssr route in astro.config.mjs This is enough to make every other SSR route and rooute with Astro Server Islands works again! ffs.

No replies yet.