4 ms·
Looks interesting. Seems low effort to implement. I will add it to my website.
by lilouartz 2y ago
Looks interesting. Seems low effort to implement. I will add it to my website.
- lilouartz 2y agoTook me a few minutes: // generate a key at https://www.bing.com/indexnow/getstarted const key = 'REPLACE_ME'; export const submitUrlsToIndexNow = async (urls: string[]) => { await fetch('https://api.indexnow.org/IndexNow', { body: JSON.stringify({ host: 'pillser.com', key, keyLocation: `https://pillser.com/${key}.txt`, urlList: urls, }), headers: { 'Content-Type': 'application/json', }, method: 'POST', }); }; I now just auto submit when updates to products are published. Thanks!