How to create dynamic URLs in sitemap.xml using angular 2?. I have tried with npm sitemap package. But i cannot create sitemap.xml. can anyone tell how to to create dynmic urls in angular 2?
Asked
Active
Viewed 3,653 times
5
-
from sitemap-generator: https://www.npmjs.com/package/sitemap-generator >This package don't care what frameworks and technologies you are using under the hood. The only requirement is, that your URL's return valid HTML. Therefore SSR (server side rendering) is required for single page apps as no JavaScript is executed. – John Apr 05 '19 at 07:33
1 Answers
-5
The better solution is to generate your sitemap dynamically with a nodejs worker, created by yourself. Nodejs can write a file in system and is pretty simple to generate file.

Julien Moulin
- 219
- 2
- 5