To conclude my exploration of @astro.build SSR with Cloudflare Workers: 🤯 This is a post in a static content collection. The file is mdx. It imports a very simple Astro component and mounts it with server:defer (Server Island). Component queries D1 SQL with 2 lines... fubits.dev/notes/how-to...
Ok I figured out a thing and I can’t believe that it works… Server-side DB fetch in a @astro.build Server Island with 0 JS & no Svelte. Rendered in a prerendered mdx blogpost in a Astro content collection. import News from „@components/News.astro“; <News server:defer /> fubits.dev/notes/how-to...
0 reposts5 likes