Server-side rendering with Rendertron - Angular 5 without firebase

前端 未结 3 1148
一向
一向 2021-01-14 05:55

I am using rendertron as a solution for server side rendering, below is index.js file. How to execute index.js and where to execute. I have setup my own instance of redertro

3条回答
  •  耶瑟儿~
    2021-01-14 06:30

    Is http://pqr.com/render your personal rendering server? If not, you have to forward the request to https://render-tron.appspot.com/render or deploy Rendertron separately yourself.

    Also right now you just assign the created express-instance to a constant (const app = express('')), configure it and export it for firebase (which you don't use). Instead you have to run express yourself on a node.js server.

提交回复
热议问题