Support sitemap creation when using generate payload

commented a month ago

What problem does this feature solve?

When using generate with dynamic routes you return the routes as an array of string URLs which the sitemap module picks up and creates a correct sitemap.xml. However, if you return the routes object from generate to use the payload feature, the sitemap will fail because it expects a string instead of an object.

What does the proposed changes look like?

Make it so sitemap can use generate.routes when using payloads. Should be updated to also accept routes in the form of:

    route: 'urlstring', 
    payload: {data object},

and extract the route.

Feature Request โ€ข Open
#c52 - Created a month ago