How do I create dynamic urls in a sitemapxml file using angular 2?

How to create dynamic urls in sitemap.xml file using angular 2 ?. I've tried with the npm sitemap package. But I cannot create sitemap.xml. can anyone tell me how to create dynamic urls in angular 2?

+3


source to share


1 answer


The best solution is to dynamically generate your sitemap using the nodejs worker node you created. Nodejs can write a file to the system and it is quite easy to generate a file.



-1


source







All Articles