I added server side rendering to my Angular project by following the Angular documentation here.
I found out that the commands to run the static pre-rendering npm run build:prerender
and npm run serve:prerender
were not here after using the CLI command:
ng add @nguniversal/express-engine --clientProject [angular.projet]
I am wondering if the static pre-rendering is still supported in Universal? The code generated is all about dynamic SSR.
That's weird because I found these commands on the universal-starter.
Anyone have information about that? Also how can I add the static pre-rendering in my angular project?
To reproduce, run in the terminal :
ng new foo
to start a new projectng add @nguniversal/express-engine --clientProject foo
to add universal
Thanks for help.