feat: Implement a client-side barcode generator tool and integrate IndexNow API for site URL submission.

This commit is contained in:
Timo Knuth
2026-01-21 22:39:04 +01:00
parent cca1374c9e
commit 896c9b1a07
3 changed files with 39 additions and 27 deletions

View File

@@ -8,7 +8,7 @@ const INDEXNOW_ENDPOINT = 'https://api.indexnow.org/indexnow';
const HOST = 'www.qrmaster.net';
// You need to generate a key from https://www.bing.com/indexnow and place it in your public folder
// For now, we'll assume a key exists or is provided via env
const KEY = process.env.INDEXNOW_KEY || 'your-indexnow-key';
const KEY = process.env.INDEXNOW_KEY || 'bb6dfaacf1ed41a880281c426c54ed7c';
const KEY_LOCATION = `https://${HOST}/${KEY}.txt`;
export async function submitToIndexNow(urls: string[]) {