Best Approach for Sitemap Generation in AEM Headless CMS Using Node.js/React
Hi Adobe Community,
We are currently transitioning from traditional AEM Sites to a headless architecture where AEM serves as the CMS, and the frontend is built using React with a Node.js backend.
In this setup, we're using Content Fragments delivered via AEM’s Graph QL APIs and no longer rely on traditional jcr:content-based pages.
I have the following questions regarding sitemap generation in this headless architecture:
Since there are no traditional pages, is it still possible to generate a sitemap using content fragment paths?
What is the recommended best practice for sitemap generation in a headless AEM setup?
Should the sitemap be generated within AEM (using a custom service)?
Or is it better to handle sitemap generation externally via Node.js by consuming AEM’s Graph QL APIs?
How should we handle alternate language URLs (href lang tags) in this architecture?
Are there any Adobe-recommended tools, frameworks, or approaches for generating XML sitemaps in a headless setup?