Dynamic Sitemap #906
Replies: 2 comments 7 replies
-
Thanks for sharing this @nayanrabiul! I was about to open this discussion myself per discussion on this issue. It sounds like Next.js has a solution to this, where you specify the routes you want to prerender for use in the sitemap. As a developer, you could enumerate your pages and map to URLs: // sitemap.ts
const Pages = pages?.map((page) => ({
url: `${baseUrl}/${page.params.pageSlug}`,
})); Trouble is, all sitemap configuration lives in your |
Beta Was this translation helpful? Give feedback.
-
Although it is not for a fully dynamic sitemap, where it can change without a rebuild, you can have a look at my Sitemap Extensions built on top of the official Sitemap integration. |
Beta Was this translation helpful? Give feedback.
-
need for a dynamic method to generate a sitemap for server-side rendering (SSR) mode. This is particularly important in scenarios like an E-commerce website where products are constantly changing. Without such a dynamic approach, it becomes challenging to keep track of what products are available in the store.
Beta Was this translation helpful? Give feedback.
All reactions