Is there a way to automatically generate a sitemap for each module during build time?
The project structure is as follows:
- cli
- client
-- Module A
-- Routing A
-- Module B
-- Routing B
-- Module C
-- Routing C
- server
I am looking to access the router data of each module located in the CLI
folder in order to create individual sitemaps for them.
While I have the logic for generating the sitemaps, I am unsure how to retrieve the router data from each module. Any guidance would be greatly appreciated.