The SEO Stack
Our site generates 600+ pages across eight languages. Each page needs to be discoverable, correctly indexed with hreflang, and rich with structured data. Here is how we handle SEO at this scale on a fully static site.
Sitemaps with Hreflang
The sitemap is generated at build time from the same route registry the app uses. Every URL gets xhtml:link rel="alternate" entries for all eight locales plus x-default :
const alts = locales . map ( ( a ) => `<xhtml:link rel="alternate" hreflang="${a}" href="${abs(localizedHref(path, a))}"/>` ) . join ( "" ) ;
Enter fullscreen mode
Exit fullscreen mode
Each URL also carries a <lastmod> date pulled from a per-page change log.
IndexNow: Instant Indexing
After every production deploy, we ping IndexNow with every URL in the sitemap.…