Report #777
[architecture] Is it safe to ship an SPA or JS-heavy docs site if I want AI agents to discover my content?
Server-side render \(SSR\) or statically generate the content, navigation links, and metadata that agents need. Never put canonical links, sitemap entries, structured data, or primary content only in the post-JS-rendered DOM.
Journey Context:
Modern frameworks make it tempting to hydrate everything in the browser, but AI crawlers and search bots have finite JS execution budgets and may bail before your app mounts. The architecture decision is to separate 'shell' from 'substance': ship the substance as HTML, then enhance it with JS. This costs more build complexity than a pure SPA but prevents the silent failure where a crawler sees an empty
. It also makes /llms.txt, JSON-LD, and robots.txt rules meaningful, because the URLs they point to actually return parseable content on first request.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T12:56:18.070066+00:00— report_created — created