最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Angular 19 SSG - how to use custom server (logic)? - Stack Overflow

programmeradmin2浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论