<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ehroz One</title>
    <description>The latest articles on DEV Community by Ehroz One (@ehroz_one_4397be73c4a5990).</description>
    <link>https://dev.to/ehroz_one_4397be73c4a5990</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4267681%2F39451024-083f-4dea-b6dd-88ac5f7613ad.jpg</url>
      <title>DEV Community: Ehroz One</title>
      <link>https://dev.to/ehroz_one_4397be73c4a5990</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ehroz_one_4397be73c4a5990"/>
    <language>en</language>
    <item>
      <title>Single-Source SEO in Astro 7: Feeding &lt;head&gt;, Hreflang Sitemaps, Satori OG Images, and llms.txt from One Route Map</title>
      <dc:creator>Ehroz One</dc:creator>
      <pubDate>Thu, 26 Nov 2026 20:32:11 +0000</pubDate>
      <link>https://dev.to/ehroz_one_4397be73c4a5990/single-source-seo-in-astro-7-feeding-hreflang-sitemaps-satori-og-images-and-llmstxt-bma</link>
      <guid>https://dev.to/ehroz_one_4397be73c4a5990/single-source-seo-in-astro-7-feeding-hreflang-sitemaps-satori-og-images-and-llmstxt-bma</guid>
      <description>&lt;p&gt;Static directories look deceptively simple when you have twenty pages. Once you cross 300+ bilingual routes (&lt;code&gt;/&lt;/code&gt; for English and &lt;code&gt;/ru/&lt;/code&gt; for Russian) across categories, individual tool pages, and dynamic "Alternatives to X" slices, metadata starts drifting fast:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A page's &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; description gets updated, while its Open Graph image and JSON-LD still render old copy.&lt;/li&gt;
&lt;li&gt;Standard sitemap plugins stamp every single URL with &lt;code&gt;new Date()&lt;/code&gt; at build time, teaching crawlers to ignore your &lt;code&gt;&amp;lt;lastmod&amp;gt;&lt;/code&gt; tags completely.&lt;/li&gt;
&lt;li&gt;Your &lt;code&gt;/llms.txt&lt;/code&gt; file for AI search engines falls out of sync the week after you write it by hand.&lt;/li&gt;
&lt;li&gt;Tiny synchronous &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; scripts (for language routing or skeleton states) force you to weaken &lt;code&gt;Content-Security-Policy&lt;/code&gt; with &lt;code&gt;'unsafe-inline'&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;While building &lt;a href="https://atlas.ehroz.pro/" rel="noopener noreferrer"&gt;Atlas&lt;/a&gt; — a static, hand-picked index of 132 web tools built on &lt;strong&gt;Astro 7&lt;/strong&gt; — 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. One &lt;code&gt;routes.ts&lt;/code&gt; Registry Instead of Scattered Page Metadata
&lt;/h2&gt;

&lt;p&gt;In a typical Astro project, &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;meta name="description"&amp;gt;&lt;/code&gt;, and Open Graph payloads are assembled ad hoc inside each &lt;code&gt;.astro&lt;/code&gt; page template. Instead, every canonical route on the site is generated once inside &lt;code&gt;src/lib/routes.ts&lt;/code&gt; as a typed &lt;code&gt;PageEntry&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;PageEntry&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;PageKind&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="cm"&gt;/** language-free path, always with a trailing slash */&lt;/span&gt;
  &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;updated&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Lang&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Lang&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="cm"&gt;/** H1 text, reused for llms-full.txt */&lt;/span&gt;
  &lt;span class="n"&gt;heading&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Lang&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="cm"&gt;/** plain-text body summary, reused for llms-full.txt */&lt;/span&gt;
  &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Lang&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="cm"&gt;/** build-time OG image path without extension */&lt;/span&gt;
  &lt;span class="n"&gt;og&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Lang&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Four separate build pipelines read from &lt;code&gt;getPages()&lt;/code&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The base &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; component&lt;/strong&gt;: emits canonical URLs, bidirectional &lt;code&gt;hreflang&lt;/code&gt; links (&lt;code&gt;en&lt;/code&gt;, &lt;code&gt;ru&lt;/code&gt;, and &lt;code&gt;x-default&lt;/code&gt;), and word-boundary-truncated titles (&lt;code&gt;≤ 60&lt;/code&gt; chars) and descriptions (&lt;code&gt;50–160&lt;/code&gt; chars).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A custom Astro XML sitemap endpoint (&lt;code&gt;sitemap-0.xml.ts&lt;/code&gt;)&lt;/strong&gt;: instead of using build timestamps, &lt;code&gt;&amp;lt;lastmod&amp;gt;&lt;/code&gt; is derived strictly from the underlying JSON data (&lt;code&gt;tool.updated&lt;/code&gt; for item pages, and &lt;code&gt;max(updated)&lt;/code&gt; across child items for category and alternatives pages).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build-time 1200×630 Open Graph PNG endpoints&lt;/strong&gt; (&lt;code&gt;/og/[...slug].png.ts&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Machine-readable AI indexes&lt;/strong&gt; (&lt;code&gt;/llms.txt&lt;/code&gt; and &lt;code&gt;/llms-full.txt&lt;/code&gt;). You can inspect the live generated output directly at &lt;a href="https://atlas.ehroz.pro/llms.txt" rel="noopener noreferrer"&gt;atlas.ehroz.pro/llms.txt&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Centralizing routes also makes thin-content guards trivial. For example, programmatic &lt;code&gt;/alternatives/&amp;lt;slug&amp;gt;/&lt;/code&gt; pages are only emitted when an item has at least two verified alternatives in the graph:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;tool&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;tools&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;alts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;alternativesOf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tool&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tools&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;alts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;continue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// never emit thin 1-item pages&lt;/span&gt;
  &lt;span class="c1"&gt;// push PageEntry...&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Rendering 600+ Bilingual OG Covers with &lt;code&gt;satori&lt;/code&gt; + &lt;code&gt;resvg&lt;/code&gt; (and the &lt;code&gt;.woff2&lt;/code&gt; Trap)
&lt;/h2&gt;

&lt;p&gt;Spinning up headless Chromium during CI to screenshot 600+ bilingual Open Graph cards is slow, and committing hundreds of PNGs bloats Git history. Pairing &lt;code&gt;satori&lt;/code&gt; (JSX-like layout to SVG) with &lt;code&gt;@resvg/resvg-js&lt;/code&gt; (Rust SVG-to-PNG renderer) generates all covers in a few seconds during &lt;code&gt;astro build&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The catch:&lt;/strong&gt; your browser frontend almost certainly serves variable &lt;code&gt;.woff2&lt;/code&gt; fonts, and &lt;strong&gt;Satori supports neither &lt;code&gt;woff2&lt;/code&gt; compression nor variable font axes&lt;/strong&gt;. Passing your production webfont buffer to Satori either throws an opaque font-parsing error or drops non-Latin glyphs.&lt;/p&gt;

&lt;p&gt;Keep your &lt;code&gt;.woff2&lt;/code&gt; variable font in &lt;code&gt;public/fonts/&lt;/code&gt; for browsers, and store static &lt;code&gt;.ttf&lt;/code&gt; cuts (e.g., Regular 400 and SemiBold 600) in a build-only folder like &lt;code&gt;src/assets/og/&lt;/code&gt;. Because only the static &lt;code&gt;.png.ts&lt;/code&gt; endpoint imports them at build time, those &lt;code&gt;.ttf&lt;/code&gt; files never ship to client bundles.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Post-Build SHA-256 Script Hashing for Strict Static CSP
&lt;/h2&gt;

&lt;p&gt;Even on a static site with zero frameworks in the client bundle, you often need one or two tiny inline &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; blocks in &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; before first paint (for example, checking &lt;code&gt;localStorage&lt;/code&gt; preferences to prevent layout or theme flashes). On static hosts like GitHub Pages, you cannot generate per-request CSP nonces.&lt;/p&gt;

&lt;p&gt;What you &lt;em&gt;can&lt;/em&gt; do is compute &lt;strong&gt;CSP Level 2 SHA-256 script hashes&lt;/strong&gt; in a small &lt;code&gt;astro:build:done&lt;/code&gt; integration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;createHash&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'node:crypto'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;collectInlineScriptHashes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;html&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;hashes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;scriptRegex&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;/&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;script&lt;/span&gt;\&lt;span class="nf"&gt;b&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;?!&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;^&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;\&lt;span class="n"&gt;bsrc&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;^&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;*&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;\&lt;span class="no"&gt;S&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;*?&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;\&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;script&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;/&lt;/span&gt;&lt;span class="n"&gt;gi&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;match&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;html&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;matchAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;scriptRegex&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;content&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;match&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;continue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;sha256&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;createHash&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'sha256'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'utf8'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;digest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'base64'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;hashes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`'sha256-${sha256}'`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hashes&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After Astro writes &lt;code&gt;dist/&lt;/code&gt;, the hook scans each HTML file, hashes the exact UTF-8 byte sequence inside every inline &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt;, and injects &lt;code&gt;&amp;lt;meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'sha256-...'"&amp;gt;&lt;/code&gt; into &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;. As long as you avoid inline event attributes like &lt;code&gt;onsubmit="..."&lt;/code&gt; in markup and attach listeners via &lt;code&gt;addEventListener&lt;/code&gt;, you get strict &lt;code&gt;script-src&lt;/code&gt; protection on pure static hosting.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Catching Regressions Before Deploy (&lt;code&gt;check:seo&lt;/code&gt; + &lt;code&gt;axe&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;When your site is data-driven, a single bad JSON entry can break metadata or contrast ratios. Two lightweight CI checks keep deployments honest:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Static HTML audit (&lt;code&gt;npm run check:seo&lt;/code&gt;)&lt;/strong&gt;: parses &lt;code&gt;dist/**/*.html&lt;/code&gt; to verify single &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; tags, canonical self-consistency, reciprocal &lt;code&gt;hreflang&lt;/code&gt; pairs, and automatic &lt;code&gt;noindex&lt;/code&gt; isolation on preview/staging domains.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automated WCAG 2 AA audit (&lt;code&gt;npm run check:a11y&lt;/code&gt;)&lt;/strong&gt;: runs Playwright + &lt;code&gt;@axe-core/playwright&lt;/code&gt; across desktop (&lt;code&gt;1280px&lt;/code&gt;) and mobile (&lt;code&gt;375px&lt;/code&gt;) viewports. It immediately caught subtle dark-mode badge contrast issues on &lt;code&gt;#0d0d0d&lt;/code&gt; surfaces that manual visual QA missed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you are building a documentation hub, curated directory, or programmatic catalog on Astro, consolidating your route metadata into one pure TypeScript module pays for itself on day one: sitemaps, social cards, JSON-LD, and AI indexes stop drifting because they physically cannot disagree.&lt;/p&gt;

</description>
      <category>astro</category>
      <category>webdev</category>
      <category>ai</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
