I'm trying to add more information for dynamic page in my sitemap. Currently, the sitemap is accessed through domain.com/dynamic-dynamicPage-sitemap.xml , but it lacks sitemap information.
Through the Velo Developer sidebar, I have added a hook for afterSitemap, however, looking at the logs, it is never called. I've visited /sitemap.xml, /dynamic-dynamicPage-sitemap.xml, /dynamicPage/sitemap.xml, but nothing is changed/exists, and my function isn't called. None of the examples on Wix's support pages have modified the sitemap.
Does this even work??? I've spent many hours on this and am starting to have my doubts...
I believe the function `afterSitemap` is called once the site is published.
Have you try to publish and look at your site events for logs?