Sitemap regression testing
Catch broken routes
before you ship.
Check routes from your live sitemap against a local build, preview, or staging site.
Build your command
Enter a full sitemap URL or a domain to use /sitemap.xml.
Run it locally
Start your site, then run this in a terminal with Node.js 20 or newer.
npx --yes sireg@1.1.0 check \
--sitemap 'https://example.com/sitemap.xml' \
--origin 'http://127.0.0.1:8000' \
--expect-status 200
From your terminal to CI
-
Try the CLI locally
Serve your local build and run the command above. Start with a small random sample to confirm you’re checking the right site.
-
Define a test suite
Decide which routes must pass every run and where sampling is enough. Commit the config and choose a report for investigating failures.
-
Run the suite before merge
Run your saved suite against a preview deployment or a site built in CI.