logoalt Hacker News

moralestapiayesterday at 7:59 PM4 repliesview on HN

I never really got the appeal of SSR, and I've implemented it a cuouple times with Next.JS and things like htmx.

Can anyone come up with the ideal use case where SSR shines? I'm willing to buy it if I see it.


Replies

grey-areayesterday at 8:18 PM

Websites.

Most websites are significantly simpler to build and maintain with SSR and traditional tools. An entire generation has forgotten this it seems and still thinks in terms of JS frameworks even when trying SSR.

As one example take this website, which serves the page your wrote your comment on using an obscure lisp dialect and SSR.

show 1 reply
nop_slideyesterday at 8:58 PM

SEO.

I run skatevideosite.com and accidentally did the first rewrite when I took it over in react because that’s all I knew. I absolutely tanked the seo.

Rewrote it in rails and got everything back in shape and it’s been a fun experience!

show 1 reply
littlecranky67yesterday at 8:55 PM

I use nextjs with static exporting (so technically no SSR). You get SEO and quick first page loads. Once the user is logged in, I use CSR only and the data loads via REST.