Assumes that your deploy script will deploy a fresh sitemap.xml file, so it can get the remote file, parse it and post the results to Bing.
- Go to https://www.bing.com/indexnow and generate an API Key.
- Save the key file to
https://www.yourdomain.com/*************.txt
- Add
index-now.mjs
atscripts/index-now.mjs
&npm install -dev cross-fetch xml-js
- Update
host
,key
andsitemapUrl
inscripts/index-now.mjs
- Add the
seo:index-now
block to yourpackage.json
- Add
&& npm run seo:index-now
at the end of yourdeploy
block