How to set up IndexNow on Next.js
On Next.js, put the key file in the public folder. Then send an IndexNow request after each deploy, or let CrawlCoach send it.
IndexNow on Next.js: You set it up, or CrawlCoach does
Set it up
- Make a key: 8 to 128 letters, numbers, or hyphens.
- Save it as
public/KEY.txt. Use the key as the file name, and put only the key inside. - Deploy. Then open
https://your-domain/KEY.txtto check that it loads. - After each deploy, send a
POSTrequest tohttps://api.indexnow.org/indexnowwithhost,key,keyLocation, andurlList(the pages that changed).
With CrawlCoach
On Pro and Agency, CrawlCoach gives you the key. Save it in public, deploy, and click verify. From then on, CrawlCoach tells Bing when your pages change.
Good to know
- One request can hold up to 10,000 pages. A
202response means the key is still being checked. That is normal for a new key. - This works the same on Vercel, Netlify, and other hosts that serve the
publicfolder at your site's main address.
What IndexNow does, and what it does not
IndexNow tells Bing and other search engines, such as Yandex, Naver, Seznam, and Yep, that a page changed. Google does not use it. For Google, submit your sitemap in Search Console and fix the reasons Google gives for skipping pages.
For the Google side on Next.js, see Next.js pages not indexed.