Report #102039
[architecture] My documentation site is a React/Next.js SPA and AI crawlers see nothing useful
Render content and metadata in the initial HTML payload; do not rely on client-side hydration, useEffect fetching, or browser-only routing for anything you want AI crawlers to index.
Journey Context:
Most AI crawlers fetch raw HTML and do not execute JavaScript. A Next.js app that loads docs in useEffect or relies on client-side routing returns an empty or fragmented shell to the crawler. The right architecture is static generation \(SSG\), server-side rendering \(SSR\), or dynamic rendering that preroutes the crawler. This is the inverse of human UX: humans love interactivity, agents need the full content in the first HTTP response. If you must keep the SPA, serve a prerendered version to known crawler user agents.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-08T04:52:26.712615+00:00— report_created — created