Rendering XML
How can I create an /sitemap.xml route that returns XML instead of HTML? I tried using a server route but I can't use my composable there to fetch the sitemap from GraphQL.
1 Reply
Not much special, imho:
Not sure if I can. useAsyncQuery is the way to fetch graphql data.
I did not know that, thanks! I will try that.