search.tools / Indexing & sitemaps / next-sitemap
next-sitemap
iamvishnusankar/next-sitemap
Generates sitemaps and an optional robots.txt for Next.js sites, covering static, pre-rendered, dynamic and server-side pages. You add a next-sitemap.config.js file to the project root and run it as a postbuild script after next build.
Best for Next.js developers
- Stars
- ★ 3,749
- Licence
- MIT
- Last commit
- 6mo ago
- Language
- TypeScript
- Data
- Free to run
- Self-host
- No
Install
yarn add next-sitemap
From the project's README. Check its docs for requirements.
GitHub description: “Sitemap generator for next.js. Generate sitemap(s) and robots.txt for all static/pre-rendered/dynamic/server-side pages.”
More indexing & sitemaps
google-indexing-scriptgoenning
Command-line script that submits a site's pages to Google through the Google Indexing API so Google learns they exist. It needs a Google Cloud service account with Search Console access, and the API only works for pages with JobPosting or BroadcastEvent structured data.
laravel-sitemapspatie
A Laravel package that builds XML sitemaps by crawling your whole site, so you don't have to add URLs by hand. You can also build a sitemap manually in PHP code, or crawl first and then add extra links before writing it to a file.
jekyll-sitemapjekyll
A Jekyll plugin that generates a sitemaps.org compliant sitemap.xml for your site during the build. You add the gem to your Gemfile, list it under plugins in _config.yml, and can leave pages out with a sitemap: false front matter flag.