chore(site): IndexNow ping for Bing/Yandex/Naver/Seznam fast-recrawl#182
Merged
ozzyfromspace merged 1 commit intomainfrom May 8, 2026
Merged
chore(site): IndexNow ping for Bing/Yandex/Naver/Seznam fast-recrawl#182ozzyfromspace merged 1 commit intomainfrom
ozzyfromspace merged 1 commit intomainfrom
Conversation
IndexNow is the shared push protocol used by Bing, Yandex, Naver, and Seznam — POST a list of changed URLs to api.indexnow.org and the crawlers refetch within minutes instead of waiting for the next scheduled crawl. Worth wiring on a docs site that grows with releases. Three pieces: - `apps/site/public/<key>.txt` — proof-of-control file the IndexNow endpoint fetches to validate that the pinger owns the host. The key itself is non-secret; the file's presence at the site root is what gates acceptance. - `apps/site/scripts/indexnow-ping.mjs` — reads the prerendered `.output/public/sitemap.xml`, extracts URLs via regex (sitemap is small enough to skip an XML parser dependency), and POSTs the payload. Hard-gated on `VERCEL_ENV === 'production'`; preview deploys, local builds, and CI all hit a no-op path. There is intentionally no force override — `INDEXNOW_DRY_RUN=1` exists for local validation but never reaches the network. Fail-soft: a network blip or non-OK response logs and exits 0 so a Bing outage never breaks our build. - `apps/site/package.json` — `index:bing` script + chained after `index:search` in the `build` and `generate` pipelines. Bing Webmaster Tools verification was completed earlier via the GSC import path, so no `msvalidate.01` meta tag is needed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
apps/site/public/2e71a5ced510106b3dfca644c1ccb49d.txtis the IndexNow proof-of-control file. The key itself is non-secret — the file's presence at the site root is what gates IndexNow acceptance.apps/site/scripts/indexnow-ping.mjsreads the prerenderedsitemap.xml, parses URLs, and POSTs toapi.indexnow.org. Hard-gated onVERCEL_ENV === 'production'; previews / local / CI all hit the no-op path. No force override; only aINDEXNOW_DRY_RUN=1mode that prints the payload without ever reaching the network.buildandgeneratesite scripts so whichever path Vercel auto-detects, the ping runs.Bing Webmaster Tools verification was already completed via the GSC import path, so no
msvalidate.01meta tag is needed.Test plan
pnpm --filter attaform-site generateend-to-end: 114 routes prerender, search index runs, IndexNow script gates correctly with[indexnow] skipped (VERCEL_ENV=undefined; production deploy required)INDEXNOW_DRY_RUN=1 node scripts/indexnow-ping.mjsagainst the real generated sitemap — parses 36 URLs, prints the exact payload that would have been postedrobots.txtaudit:User-agent: *allows Bingbot;Sitemap:directive present and correct.output/public/so it serves athttps://www.attaform.com/2e71a5ced510106b3dfca644c1ccb49d.txt[indexnow] OK (200|202)in the Vercel build log🤖 Generated with Claude Code