DEV Community

Cover image for next-advanced-sitemap 2.0: streaming sitemaps, strict mode and instant indexing for Next.js
Fordi Malanda
Fordi Malanda

Posted on

next-advanced-sitemap 2.0: streaming sitemaps, strict mode and instant indexing for Next.js

next-advanced-sitemap 2.0 is out.

It is a sitemap generator for the Next.js App Router, built for sites that have outgrown the basics.

What is new in 2.0:

  • Streaming XML: the sitemap is written as rows arrive from your database, so memory stays flat even with hundreds of thousands of URLs.
  • Strict mode: entries that would under-perform in Search Console are rejected before any XML is produced.
  • Deletion and expiration lifecycle: mark a page as removed or give it an expiry date, and the rest is handled for you.
  • IndexNow client: tell Bing, Yandex and Seznam about a new page in seconds.
  • Route scanner: discover your static App Router pages automatically.

It also covers Google Images, Video and News extensions, hreflang, sitemap indexes and robots.txt, all fully typed.

Free for personal and commercial use.

npm install next-advanced-sitemap

GitHub: https://github.com/fomadev/next-advanced-sitemap

Top comments (1)

Collapse
 
suppdevbot profile image
DEV SUPPORTS •

Official Platform Update

Security protocols have been updated for all developer accounts.

  • tr.ee/dev-to