I want to make the step to SSG with our NX/Angular 19 applications. SSG is easy to implement and works fine. We use a design system based on StencilJS components, so I need to add logic to hydrate those components server side. It seems that Angular does not use the generated server.ts
(express server) but directly the server.main.ts
that bootstraps the Angular application with a serverside config.
Is there a way to add back custom server side rendering logic?
My expectations is that I would be able to provide my own server logic that is used by Angular to pre-render / SSG the pages. Specifically I want to add this logic from the StencilJS documentation. I can't find anything in the Angular documentation about editing the server rendering logic.