A standalone endpoint and a matching Node script. The endpoint announces the current site state, optionally forced, optionally as a dry run that just returns the URL set. The script reads the cron secret from the local environment file and can target production or a local dev server.
Also called: manual sitemap ping · re-announce site · sitemap-sync script
- 1GET /api/cron/sitemap-sync announces if the URL set changed.
- 2?force=1 announces regardless; ?dry=1 returns the URL set and pings nothing.
- 3node scripts/sitemap-sync.mjs runs it against production; --dry, --force and --local mirror the flags.
- 4Unknown flags are rejected with the known list rather than silently ignored.
The route explains why it is separate from the daily sweep: "The daily sweep already does this, but it is bundled with rank checks that cost real money per keyword, so 'just re-announce the sitemap' was not something anyone could actually trigger." And the script names the case it covers: "publishing through the panel announces automatically, but a post that reaches the database another way (a script, a hand-edited row) used to go live with nobody told. This is the manual lever for that case."
- Re-announcing was bundled with paid rank checks.
- Content that reached the database outside the panel was never announced.
See it on your own jobs
Twenty minutes, your numbers, no slide deck. We’ll build one of your real buildings in front of you and send you the estimate link at the end — yours to keep either way.
or keep browsing features →