Angular Sitemap builder

GitHub license  npm  scope

This package provides an Angular CLI builder to generate a sitemap from prerendered pages when using @angular/ssr.


Getting started



Installing


Configuring the builder


Generating the sitemap


Prerendered URLs in Angular

As described in #16051, Angular router, by default, removes trailing slashes from URLs; however, when serving prerendered pages most web servers add trailing slash which causes unneccessary redirects and degraded SEO performance. To avoid this, consider including the following code in your app configuration (based on #16051 (comment)):