Gating IndexNow pings on a self-hosted Next.js deploy's live commit
Self-hosted Next.js sites, such as those run on Coolify, Dokku or a Docker VPS, lack Vercel's clear signal that a commit has gone live. The author proposes a health endpoint that reports the deployed commit SHA, populated via Coolify's Include Source Commit in Build option. A GitHub Action polls that endpoint and submits URLs to IndexNow only after the pushed commit is confirmed live, avoiding pings that would reach search crawlers while the old container still serves. The workflow skips rather than fails if the deploy does not go live within 15 minutes, and uses a concurrency group to cancel superseded runs. The submission script reads the deployed sitemap and verifies the IndexNow key file is publicly served before submitting.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in