Static directories look deceptively simple when you have twenty pages. Once you cross 300+ bilingual routes ( / for English and /ru/ for Russian) across categories, individual tool pages, and dynamic "Alternatives to X" slices, metadata starts drifting fast:
A page's <head> description gets updated, while its Open Graph image and JSON-LD still render old copy.
Standard sitemap plugins stamp every single URL with new Date() at build time, teaching crawlers to ignore your <lastmod> tags completely.
Your /llms.txt file for AI search engines falls out of sync the week after you write it by hand.
Tiny synchronous <head> scripts (for language routing or skeleton states) force you to weaken Content-Security-Policy with 'unsafe-inline' .
While building Atlas — a static, hand-picked index of 132 web tools built on Astro 7 — I wired all of these outputs to a single TypeScript route registry with zero runtime server cost. Here is how the architecture works and the gotchas worth avoiding.
1.…