I am using react-router-sitemap to generate sitemap.xml and successfully generated file in public folder after running npm run sitemap. But I need to update this file whenever I add new URL's to the site without creating build. I am using python/Django for backend
I followed this blog how to generate sitemap for react website
Is there any way by which I can run npm run sitemap after some conditions