What's been your experience with building SSR apps with Astro? Have you had any hiccups?
Looking into using Astro for a reddit inspired application. I just want to know if I'm going to have a comfortable time building it or whether the SSG origins of the framework means I'll need to wrestle with 2nd class support for my use case.
Have you built any SSR apps in Astro? How'd it go?
Bonus: can anyone compare the experience to SvelteKit? Obviously you'd miss out on the framework agnosticism.
Thanks~ :)
Posted Oct 26, 2023, 5:55 PM UTC
16
It's pretty good, but I'd much rather prefer using Deno as SSR runtime, not Node. Kinda personal opinion, yes, but the performance difference is nonzero too.
I've built a ecommerce using Astro, it works as expected, wouldn't say that I had any major issues. You can also throw trpc in if you prefer "fancy" api endpoints. I didn't for that project as I wanted some request to return only status codes with no body, so I was fetching a lot =)
This was actually my plan! To use the Deno Adapter for Astro. Are you saying that you've tried it, or that you haven't?
Thanks for the reply :)
I wasn't able to make Deno adapter work at all lol. We use node for now. Astro team has plans to fix that zoo of adapters, we'll wait and see
How did you handle your cart, checkout, and payments while using Astro? Considering the same vs something like woocommerce or another framework with ecomm features
You can have other framework components inside Astro. Add a Vue or React island that handles interactive elements and that's it
So something like medusa js would work? I’m new to how a nextjs app could be ran within island architecture like this. Any pointers appreciated.
any javascript can be executed in astro both server side and client side. idk what medusa is, can't say anything about it specifically