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.mjsatscripts/index-now.mjs&npm install -dev cross-fetch xml-js - Update
host,keyandsitemapUrlinscripts/index-now.mjs - Add the
seo:index-nowblock to yourpackage.json - Add
&& npm run seo:index-nowat the end of yourdeployblock