Verify actual rendered pages and indexing controls
Control crawl access and indexing separately
A robots.txt file governs requests by cooperating crawlers; it is not authorization and does not reliably remove an already known URL from search. A noindex instruction in a robots meta tag or supported X-Robots-Tag response header requests exclusion from indexing. The crawler must be able to retrieve the instruction. Protect private or staged content through authentication rather than relying on either mechanism. A sitemap lists preferred public URLs; it does not force crawling or indexing. Do not list drafts, redirects or error pages as indexable articles.
import {pages} from './routes.mjs';import {origin} from './metadata.mjs';const xmlEscape = s => s.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/'/g,''');export function sitemap() { const urls = pages.filter(p=>p.published).map(p=>` <url><loc>${xmlEscape(new URL(p.path,origin).href)}</loc></url>`); return ['<?xml version="1.0" encoding="UTF-8"?>','<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">',...urls,'</urlset>'].join('\n');}The XML includes only the two published guide URLs. The reserved example domain is intentionally not deployable. Do not publish this sample robots or sitemap to a live site. A real sitemap should be served at a stable URL and reviewed against actual HTTP responses.
Check what was delivered, not just what JSX says
Inspect the response status and initial HTML using the browser network panel or an approved HTTP client. Inspect the hydrated document separately; navigate between two routes, reload a deep link, disable JavaScript for the public route, and verify title, canonical, links and visible text. Compare the observed values against an explicit acceptance contract. The following helper consumes observations from a test, not a search engine. It intentionally treats one canonical and exact title as local project requirements.
// An explicit local acceptance policy over measured observations, not a crawler.export function discoverabilityIssues(page, expected) { const issues=[]; if (page.status!==expected.status) issues.push('status'); if (expected.status!==200) return issues; if (page.title!==expected.title) issues.push('title'); if (page.canonicals.length!==1 || page.canonicals[0]!==expected.canonical) issues.push('canonical'); if (!page.visibleText.includes(expected.text)) issues.push('content'); if (page.noindex || !page.crawlAllowed) issues.push('indexing policy'); if (!page.links.includes(expected.link)) issues.push('link'); return issues;}Structured data and honest search quality
JSON-LD can describe content in machine-readable form. Use schema types that accurately match the visible page, and follow the relevant search engine eligibility guidelines before expecting any enhanced display. Never invent reviews, credentials or ratings, hide keyword text, or create doorway pages. The example describes an original article and serializes only approved catalogue fields. Escape less-than signs so script text cannot terminate the JSON-LD script element. Insert via a reviewed server/framework integration; this example is not a general-purpose HTML sanitizer.
import {metadata} from './metadata.mjs';// Trusted catalogue fields only; escape '<' before insertion into script text.export function articleJsonLd(path) { const m=metadata(path); if (!m) return null; return JSON.stringify({'@context':'https://schema.org','@type':'Article',headline:m.title.split(' | ')[0],description:m.description,url:m.canonical}).replace(/</g,'\\u003c');}For a missing or draft route the helper returns null. On a public article compare the JSON-LD headline and description against visible content. Core Web Vitals (LCP, INP and CLS) are useful experience indicators, not a ranking guarantee; see Chapter 42. For an authorized live site, use Search Console URL Inspection and structured-data validation to compare crawler observations with local checks. This offline lab measures neither ranking nor actual indexing. Practice: diagnose a public 200 response with a generic shell and a conflicting canonical, then describe a verification plan.