We have a custom Sitemap generator class for our site; as we want to control some of the URLs generated in our sitemap.xml for bucketed items. I believe I've patched the Sitemap Generator correctly in the config files:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<services>
<register patch:instead="register[@serviceType='Sitecore.XA.Feature.SiteMetadata.Sitemap.ISitemapGenerator, Sitecore.XA.Feature.SiteMetadata']" serviceType="Sitecore.XA.Feature.SiteMetadata.Sitemap.ISitemapGenerator, Sitecore.XA.Feature.SiteMetadata" implementationType="Sitecore.XA.Feature.SiteMetadata.Sitemap.CustomSitemapGenerator, XA.SiteMetaData.Custom" lifetime="Transient"/>
</services>
</sitecore>
</configuration>
However, I can't seem to trigger regeneration of the sitemap xml file; as it never seems to call our custom generator. I've tried rebuilding the code, reloading sitemap.xml, and republishing everything. Still won't trigger. I've verified the config file has been published to my build directory and is in the compiled Sitecore configuration XML.
How can I get the sitemap.xml to be regenerated for the site?