iamvishnusankar / next-sitemap

Sitemap generator for next.js. Generate sitemap(s) and robots.txt for all static/pre-rendered/dynamic/server-side pages.
https://next-sitemap.iamvishnusankar.com
MIT License
3.17k stars 120 forks source link

How to prevent output of the default sitemap file? #813

Closed xning-lci closed 1 month ago

xning-lci commented 1 month ago

I have generated the server-sitemap.xml.tsx for the sitemap which includes all the content I need. However, the next-sitemap will generate the default sitemap.xml also. So How do I prevent the default one, just use the server-sitemap.xml?

I think the final file would be like the below: image or image

Reference posted by @prblackburn in https://github.com/iamvishnusankar/next-sitemap/discussions/334_

xning-lci commented 1 month ago

I am using transform to prevent transform: async (config, path) => { return null },