Deploy angular rendered app on shared server

余生颓废 提交于 2019-12-07 18:19:41

Angular Universal renders your application in server side before serving the page (SSR). Indeed you will need nodejs to make it work.

You need to prerender your application as static files.

With @ng-toolkit/universal installed you should be able to prerender your application with the command :

npm run build:prerender

Now, you should see new folder dist/static , inside which all your application views should be prerendered and can be served as static files.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!