next-sitemap is a tool for generating sitemaps and robots.txt files for Next.js projects. It supports static, pre-rendered, dynamic, and server-side pages, and offers various configuration options including splitting large sitemaps, custom transformations, and additional paths. It can use environment variables and allows dynamic sitemap generation via server-side scripts.
Table of contents
Table of contentsGetting startedIndex sitemaps (Optional)Splitting large sitemap into multiple filesConfiguration OptionsCustom transformation functionAdditional paths functionGoogle News, image and video sitemapFull configuration exampleGenerating dynamic/server-side sitemapsTypescript JSDocContributionSort: