Skip to content

feat: a script that announces the site's pages to IndexNow - #43

Merged
sepehr-safari merged 1 commit into
mainfrom
announce-changed-pages
Sep 24, 2026
Merged

sepehr-safari merged 1 commit into
mainfrom
announce-changed-pages

Conversation

@sepehr-safari

Copy link
Copy Markdown
Contributor

Closes #42

node scripts/indexnow.mjs <host> submits every page in the deployed sitemap to IndexNow; --dry-run prints the request instead. It checks the key file is served first, since IndexNow refuses a submission for an unreadable key without saying why.

Run against production: Submitted 10 URLs (HTTP 202).

Reads the pages from the deployed sitemap, checks the key file is served before submitting, and names the cause when IndexNow refuses. The host is an argument, since the domain lives in the deploy settings rather than here. Run by hand after a change worth announcing, not on every build.
@vercel

vercel Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
zignostr.com Ready Ready Preview Sep 24, 2026 9:13am UTC

@sepehr-safari
sepehr-safari merged commit 3d082c2 into main Sep 24, 2026
3 checks passed
@sepehr-safari
sepehr-safari deleted the announce-changed-pages branch September 24, 2026 09:13

This branch was successfully deployed

1 active deployment
Preview — ee0fbc9d Deployed Sep 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Announce changed pages through IndexNow

1 participant