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
0 reposts0 likes
yes will do - I need to spend some time away from the computer but I'll try to do it soon. Patching a single route unlocks every other SSR / Server Islands route btw! bsky.app/profile/fubi...
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.