TBD.
Often, you should just reach for a solid existing framework such Next.js or Gatsby.
But sometimes those solutions are either too heavy or don't fit the requirements at hand.
It's possible to whip up a simple custom SSR setup with jetpack, here's a rough proof of concept from a previous SSR project I worked on:
I just need to flesh it out into a working example.