Do you deploy just the JS to a CDN or a whole website? I wanted to do something similar, throw a static website on a CDN and use a Go API as its backend. But unsure how to get around CORS in a reliable way.
IMO biggest problem is that if your website is public facing, then just having an SPA is bad for crawlers and not great for UX.