Repository navigation
v0.1.0 (2026-10-14)
First release of Sitemap for Payload. It builds sitemap.xml from your Payload content, stores the files through any Payload storage adapter and keeps them fresh. This line is for Payload 3. For Payload 4, use the beta tag (1.x).
pnpm add @seshuk/payload-plugin-sitemapRequirements
- Payload 3.83+ and Node.js 22+.
- Something that runs Payload jobs (
jobs.autoRun,payload jobs:runon a cron, or your own worker), orjobs: falseto start runs yourself. - Run
payload generate:importmapafter you add the plugin.
Features
- Index and child sitemaps. Split at the spec limits (50,000 URLs or 50 MB), with images and hreflang.
- Any source. Collections, static pages and your own URL lists in one
sourcesarray.url: '/blog/:slug'is enough. Every option is checked at startup. - Only public pages. By default, read as an anonymous visitor. Drafts are never listed.
- Editors in control. Exclude a page or set its priority right in the document.
- Locales and tenants. A domain per locale, and a sitemap per tenant with
@payloadcms/plugin-multi-tenant. - Any storage. S3, R2, Bunny, Vercel Blob, local disk or your own
upload. Optional publish to a CDN. - Fresh and safe. Edits queue one job, unchanged files are skipped, and a failed run keeps the old files online.
- Stable URLs.
/api/sitemap.xmlwithETagand304, or the same files on your site domain withsitemapProxy. - Admin page and widget. Status, file table and a Regenerate button, in every language Payload ships.
The plugin sends anonymous usage telemetry: plugin, Payload and Node.js versions and which features are on. Turn it off with telemetry: false, SITEMAP_TELEMETRY_DISABLED=1 or DO_NOT_TRACK=1.
🚀 Features
- Initial commit (d46d2c2) by @maximseshuk