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.
By Bruno Amorim · ·
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 Check the file. 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.
Find the pages Google skips
Sign in with Google. CrawlCoach checks up to 500 pages for free. Pro and Agency also tell Bing when your pages change.
Get my free reportFree for up to 500 pages. No card needed. Sign in with the Google account you use for Search Console.