Switch the admin panel between production and development databases, and copy production down
Sitemap
Generates chunked, cached XML sitemaps for Payload collections with cache invalidation on save
Installation
pnpm add @whatworks/payload-sitemap About
Sitemap builds XML sitemaps from the Payload collections you choose, split into chunks so large sites stay within the search engine size limit. Nothing is rebuilt when a document is saved. The next sitemap request regenerates only the affected collection from the database, so slug changes, nested page updates, publishes, unpublishes and deletes show up without extra work.
Drafts appear only once published, and an admin field lets editors keep individual documents out of the sitemap. Responses are cached and tagged for CDN caching, and on Next.js and Vercel the cache is cleared by tag when content changes. A robots file helper blocks the admin and API routes in production and points crawlers to the sitemap.
Package info
- Package name
@whatworks/payload-sitemap- Latest version
0.2.1- Unpacked size
- 131 kB
- License
- MIT
- Weekly downloads
- 303
- Last publish
- Jul 10, 2026
More from what-works-global
View profileManaged redirects with cache-backed Next.js middleware and an orderable admin list
Role-based access control with a per-collection permissions matrix in the admin panel
Stores a computed path on each page so URLs resolve with one indexed lookup
Audit feed of document changes and user logins across every collection and global
Records who created and last edited each document, with names shown in the admin
Similar plugins
More in SEOAdds an SEO tab with meta title, description, image and search preview to collections
Manages URL redirects from the admin panel, to pages or external addresses
Schema.org JSON-LD for pages, with business settings and per-document types in the admin
Live SEO checks in the Payload document editor, with a SERP preview
Logs AI crawler visits, serves llms.txt and shows an AI visibility dashboard
Live SEO checks and SERP preview in the Payload document editor