NuxtN
Nuxtβ€’3y ago
Maik

✨ Dynamic Sitemap with SSR without pre-render

Hello Discord,
I'm currently using the simple-sitemap module to handle my sitemap.
Since the site I'm building should be SSR without pre-rendering, I cant rely on the module to crawl my routes. So I want to query our CMS using the graphql-client module. I've tried the "sitemap:generate" hook and failed because it wouldn't import the generated GQL Query call.

I'm now wondering what is the best way to implement this for my context?
I kinda wanna make it work with simple-sitemap, but I'm almost ready to try just creating a sitemap.xml.ts in my server directory πŸ˜„
Was this page helpful?