DEV Community

Discussion on: Angular v9 & Universal: SSR and prerendering out of the box!

Collapse
 
briancodes profile image
Brian

Great stuff, SSR has come a long way! One question.... how would one use the pre-rendered routes once they're generated? I have used express-engine SSR for a blog site, but it's not pre-rendered, just renders when served (which works for SEO and first load time)

Collapse
 
samvloeberghs profile image
Sam Vloeberghs • Edited

They are typically generated as all index.html files in a directory structure that resembles the routing hierarchy of your website. For example, a route /blog/2019/12/01/latest is saved on the filesystem as /blog/2019/12/01/latest/index.html. A webserver typically serves the index.html as default file when visiting the directory