Menu

IndexNow in Next.js: Notify Bing and Yandex on Publish (Google Is Different)
📰

IndexNow in Next.js: Notify Bing and Yandex on Publish (Google Is Different)

DEV Community: nextjs·Najmul Hasan·7 days ago
#WeDNiaiT
#devtonextjs#devto#dev#urls#indexnow
Reading 0:00
15s threshold

My blog commits each article to GitHub and Vercel redeploys. Bing and Yandex then find the new URL whenever they next crawl. IndexNow in Next.js shortens that wait: you send the URL to one endpoint the moment it changes. This article covers the key file, a protected route handler, the response codes, and why Google is not covered. Everything targets Next.js 16 (App Router) on Node.js 20.9 or newer.

The short answer

Host a key file at your site root, then POST the changed URLs with that key to https://api.indexnow.org/indexnow . According to the IndexNow documentation , participating engines share submitted URLs with each other, so one request is enough.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.