Starting from v11.1 Angular enables hybrid rendering by default for Universal projects.
$ yarn prerender
$ node dist/hybrid-rendering/server/main.js
$ open http://localhost:4000
Once you start the Universal server it will:
/about
from the prerendered at build-time page dist/hybrid-rendering/browser/about/index.html
/
and /user/:id
By default, the command yarn prerender
will:
/
and store them under dist/[app]/browser
dist/[app]/server/main.js
which will SSR the rest at runtimeMIT