Replies: 1 comment
-
https://www.npmjs.com/package/next-sitemap#server-side-index-sitemaps-getserversidesitemapindex The method is as described above, and you need to wrap the dynamically generated sitemaps one more time. Then, statically declare the naming of the When robots access the site, they will crawl the dynamically generated sitemaps. Example: If you create a product dynamic sitemap:
The existing logic doesn't generate the index sitemap, so I implemented the dynamic sitemap using the method above. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to generate multiple sitemaps with
generateSitemaps
. If i put a sitemap.ts file in the example repoapp/[locale]/pathname/sitemap.ts
withgenerateSitemaps
as in the example here (https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap#generating-multiple-sitemaps), the sitemap.xml file do not show up in the build folderBeta Was this translation helpful? Give feedback.
All reactions