Steps to follow -
- Clone repo and install the Dependencies
- Run the command
npm run sitemap
Output -
- Check the file named
sitemap.xml
in thesrs
folder.
Points to Note -
- Script entry in
package.json
file. - Path to
sitemap.xml
file. - Your API endpoints should be in working state.
Links for know more on this in details -
- Medium Blog - https://medium.com/@PardeepJain/how-to-create-dynamic-sitemap-xml-using-javascript-ee4d9ba7402a
- YouTube Video - https://www.youtube.com/watch?v=1vGE5UypUYY
Want to connect with me on social media? check out these links -
https://twitter.com/erpardeepjain https://github.com/erpardeepjain https://medium.com/@pardeepjain