Fixed my @astro.build SSR + async Svelte + prerendering demo. Had to resort to a server endpoint. Good enough for now but I still want to figure out how to SSR a data-fetching index.astro on Cloudflare Workers. It would always only return [object Object] with prerender=false fubits.dev/how-much-is/
Post
fubits.devHow much is...? - @fubitsFull Stack Developer specializing in Svelte, SvelteKit, Data Visualization, and Technical Project Management for NGOs and startups
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
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.
0 reposts2 likes
maybe related github.com/withastro/as...
github.comGet demo app deploying to Cloudflare by matthewp · Pull Request #14634 · withastro/astroChanges
Routes list is now created in the top-level command and passed down.
The new serialized manifest is now the manifest in the build as well, the build plugin mutates it rather than creating ...