ghost_dev's avatar

dynamic sitemap for ecommerce multilanguage website in nextjs 13

I recently started working in nextjs 13. I developed Multilanguage ecommerce website. my directory structure is as follows

src
	app
		[lang]
			pages folders

i ma using middleware for checking presence of language parameter in URL so my current URL is like this

www.domain.com/en
www.domain.com/en/about-us
www.domain.com/en/contact

But I cant figure out how I can make dynamic sitemap for blogs, products etc. with one main sitemap (sitemap_index.xml) which will include links to all other sitemaps of my website

Can anyone guide me on how to achieve this

0 likes
0 replies

Please or to participate in this conversation.