A sitemap generator for Next.js that creates sitemaps and robots.txt for static, pre-rendered, dynamic, and server-side pages.
next-sitemap is a sitemap generation tool built specifically for Next.js applications. It automatically creates XML sitemaps and a robots.txt file for all pages in a Next.js site, including statically generated, server-side rendered, and dynamic routes. It solves the problem of manually managing sitemaps for SEO in Next.js projects.
Next.js developers who need to ensure their sites are properly indexed by search engines, particularly those building sites with mixed static and dynamic content or large numbers of pages.
Developers choose next-sitemap because it's specifically designed for Next.js with built-in support for all rendering methods, offers automatic configuration with sensible defaults, and provides advanced features like dynamic sitemap generation and large site optimizations that generic sitemap tools lack.
Sitemap generator for next.js. Generate sitemap(s) and robots.txt for all static/pre-rendered/dynamic/server-side pages.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
For basic use, it works out of the box with a minimal config file and defaults like daily changefreq, reducing setup time for standard Next.js sites.
Automatically covers all Next.js rendering methods—static, SSR, ISR, and dynamic routes—ensuring comprehensive page indexing without manual URL listing.
Splits sitemaps into multiple files via sitemapSize configuration and creates index sitemaps, adhering to Google's guidelines for sites with thousands of pages.
Provides server-side APIs like getServerSideSitemap to generate sitemaps from CMS data, enabling hybrid static and dynamic sitemap generation for fresh content.
Sitemaps are generated during the build process, so for frequently updated content, they can become stale until a new build is triggered, requiring extra server-side setup for real-time updates.
Features like custom transformations, dynamic sitemaps, and advanced robots.txt policies require manual configuration and a deep dive into the options, which can be overwhelming for simple needs.
Exclusively designed for Next.js, making it unusable for projects on other frameworks or vanilla React, limiting its versatility in mixed tech stacks.