Dev.to WebDev 🛠 Dev 👁 0 📖 2 min read

Scaling a Zero-Framework Static Site to 26 Indexed SEO Pages With Automated IndexNow in Node.js

When you ship seasonal landing pages during a 72-hour window like Black Friday → Cyber Monday, waiting 2 weeks for Googlebot or Bingbot to organically rediscover your new routes means missing the entire event. Here is t

When you ship seasonal landing pages during a 72-hour window like Black Friday → Cyber Monday, waiting 2 weeks for Googlebot or Bingbot to organically rediscover your new routes means missing the entire event.

Here is the exact zero-dependency Node.js pattern we used to scale a static deal hub from 1 page to 24 live HTTP 200 pages on Vercel with automatic sitemap.xml generation and instant Bing / DuckDuckGo / ChatGPT Search indexing via IndexNow.

1. Data-Driven Route Generation (web/build.mjs)

Instead of hand-coding 24 HTML files, we define store/topic configs in a plain JS array (storePages) and render each page with shared FAQ JSON-LD schema, sticky CTA bar, and responsive CSS:

for (const sp of storePages) {
  const html = renderPage(sp); // includes FAQPage JSON-LD + og:image
  fs.writeFileSync(path.join(DIST, sp.file), html);
}

2. Automatic sitemap.xml + IndexNow Key File

On every build, web/build.mjs writes both sitemap.xml (with today's <lastmod>) and the IndexNow verification key file (<key>.txt) directly into web/dist/:

const INDEXNOW_KEY = '8c4f9e2a7b1d6e3f5a0c8d2e4f6a9b1c';
fs.writeFileSync(path.join(DIST, `${INDEXNOW_KEY}.txt`), INDEXNOW_KEY);

3. One-Line Post-Deploy IndexNow Ping (HTTP 200)

Right after vercel --prod --yes completes (~3 seconds!), a single curl POST notifies IndexNow of every newly deployed URL:

curl -s -o /dev/null -w "INDEXNOW -> HTTP %{http_code}\n" \
  -X POST "https://api.indexnow.org/indexnow" \
  -H "Content-Type: application/json" \
  -d '{"host":"cvs-black-friday-deals.vercel.app","key":"8c4f9e2a7b1d6e3f5a0c8d2e4f6a9b1c","keyLocation":"https://cvs-black-friday-deals.vercel.app/8c4f9e2a7b1d6e3f5a0c8d2e4f6a9b1c.txt","urlList":["https://cvs-black-friday-deals.vercel.app/","https://cvs-black-friday-deals.vercel.app/cyber-monday-2026.html"]}'

Explore the Live 24-Page Static Hub

Are you using IndexNow in your static site CI/CD pipelines yet?

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.