I'm convinced SSR is only a thing because of Lighthouse scores. Client-side rendering with client-agnostic REST APIs is a fantastic architecture. But noooooooooo we can't have nice things
Fantastic if you ever could anticipate having multiple different consuming clients. Otherwise it's fantastically over-engineered IMO.
In traditional SSR, using a template language, you craft a query and expose your variables to your template.
In SPA, you craft a query and expose your variables through an API.