Agent Ready HTML

Client-only routes leave fetch-only agents an empty shell

In short

Claude's web fetch tool does not support websites dynamically rendered with JavaScript, and an empty app shell prevents fetch-only agents from reading the page. SvelteKit's ssr = false renders an empty 'shell' page, and Nuxt's ssr: false gives client-side only rendering with a loading screen.

Published 18 November 2026

Claude's web fetch tool retrieves the full text content from the specified URL, and Anthropic states that it does not support websites dynamically rendered with JavaScript. Cloudflare's Markdown for Agents works from the same starting point: it fetches the original HTML version from the origin and converts it to Markdown before serving it to the client. In controlled probes reported in Vercel's agent guide, a fetch-only client could not retrieve an answer available only through JavaScript, and the guide lists an empty app shell among the responses that prevent fetch-only agents from reading the page.

Related: Client-side rendering and agents

What each framework's docs give as the default

  • Astro. Astro prerenders every route by default and lets single routes opt out with export const prerender = false. Its UI components render to HTML and CSS by default, with client-side JavaScript stripped out, and one turns into an interactive island only through a client:* directive, while the rest of the site stays static HTML (Astro islands).
  • Next.js. Layouts and pages start as Server Components, which fetch data and render parts of the UI on the server (Server Components page). Client Components and the RSC Payload are used to prerender HTML, and on first load that HTML shows a fast non-interactive preview of the route.
  • Nuxt. By default Nuxt uses universal rendering: it runs the Vue.js code in a server environment and returns a fully rendered HTML page. Because the content is already in the HTML document, its docs say crawlers can index it without overhead (Nuxt rendering modes).
  • React Router. Three strategies appear on the rendering page (client side rendering, server side rendering and static pre-rendering), and the page shows ssr: false for the first and ssr: true for the second. Server side rendering requires a deployment that supports it.
  • SvelteKit. First on the server, then in the browser: any component renders (or prerenders) on the server and reaches the client as HTML, then renders again in the browser for hydration (SvelteKit page options).

Related: How to move the answer into the initial HTML without a rewrite

Related: Universal rendering

Settings that fix HTML at build time

Astro's default output mode is 'static' (on-demand rendering guide). After adding an adapter, output: 'server' server-renders all pages by default, and export const prerender = true returns any single page or endpoint to static. Astro says the 'server' mode only switches the default rendering behavior.

A Next.js static export begins with output: 'export' in next.config.js. Server Components then run during the build and render into static HTML for the initial page load, and Client Components are prerendered to HTML during next build. For data fetching on the client, the static exports guide uses a Client Component with SWR, and the example component returns 'Loading...' until data arrives. ISR is not supported when creating a static export. With Cache Components, Partial Prerendering is the default and generates a static shell of HTML for initial page loads.

Running nuxt generate or nuxt build --prerender renders every page as a separate static HTML file by default, with no server endpoints in the output (Nuxt rendering). Hybrid rendering is not available with nuxt generate.

React Router takes a prerender function in the config that returns the list of URLs to prerender at build time. For those URLs, pre-rendering generates static HTML and client navigation data payloads, and route loaders fetch the data at build time (rendering strategies).

In SvelteKit, export prerender = true from a page, or from the root layout to prerender everything except pages marked not prerenderable (SvelteKit options). For a page to be prerenderable, any two users hitting it directly must get the same content from the server.

Settings that remove server HTML

  • Nuxt. Client-side only rendering comes from ssr: false in nuxt.config.ts, and with it you should place a loading screen in app/spa-loading-template.html (Nuxt docs). Nuxt warns that search engine crawlers won't wait for the interface to be fully rendered on their first try to index the page.
  • React Router. For a Single Page App, ssr: false disables server rendering. At the level of one route, a clientLoader avoids server rendering and fetching for that route's portion of the UI (React Router page).
  • SvelteKit. An empty 'shell' page is what ssr = false renders, and the docs say that in most situations this is not recommended (SvelteKit docs). Placed in the root +layout.js, it makes the whole app render only on the client. The opposite switch, csr = false, ships no JavaScript to the client, so the page should work with HTML and CSS only. If both are false, nothing is rendered.

Per-route and whole-app switches

Astro takes export const prerender at the top of each page or endpoint, while output: 'server' flips the site-wide default (Astro docs). Nuxt sets ssr for the whole app in nuxt.config.ts, and its routeRules give ssr: false, prerender or swr to sections of a site matched by patterns like '/admin/**' (Nuxt route rules). In React Router, ssr is a global setting, though individual routes can still be statically pre-rendered (React Router docs). SvelteKit options go in +page.js or +page.server.js for one page, a shared +layout.js for a group, or the root layout for the whole app, and child layouts and pages override values set in parent layouts (SvelteKit). Next.js places revalidate in the page file itself, as in its app/blog/[id]/page.tsx example (Next.js ISR).

Checking a route

Request the route without running JavaScript and read what comes back. Per Vercel's guide, the request should end with a 200 response, intermediate 301 or 308 redirects are acceptable, and the returned HTML should contain the answer. A curl request cannot confirm whether a real agent is blocked, and the guide names server logs as the best operational check.

Related: Plain Fetch viewer

How to choose

On Astro, stay in the default 'static' mode until you are sure that most or all pages will render on demand, as the Astro guide advises, and add the opt-out only at the top of each individual page or endpoint you want rendered on demand.

On Next.js, keep the content an agent must read in the initial HTML, server-rendered or prerendered, as Vercel's agent guide advises, rather than injected by a single-page app after load.

On Nuxt, keep the default universal rendering, which the Nuxt docs say optimizes search engine indexing, and give a section that must render only in the browser ssr: false through routeRules.

On SvelteKit, keep ssr = false for a page that cannot be rendered on the server, the case the page options docs give for it (browser-only globals like document). SvelteKit's page options docs say not to add export const ssr = false to the root +layout.js when the goal is a statically generated site.

Sources

  1. Astro: On-demand rendering https://docs.astro.build/en/guides/on-demand-rendering/, read 18 November 2026
  2. Astro: Islands architecture https://docs.astro.build/en/concepts/islands/, read 18 November 2026
  3. Next.js: Server and Client Components https://nextjs.org/docs/app/getting-started/server-and-client-components, read 18 November 2026
  4. Next.js: Static Exports https://nextjs.org/docs/app/guides/static-exports, read 18 November 2026
  5. Next.js: Incremental Static Regeneration https://nextjs.org/docs/app/guides/incremental-static-regeneration, read 18 November 2026
  6. Next.js: Partial Prerendering https://nextjs.org/docs/app/getting-started/partial-prerendering, read 18 November 2026
  7. Nuxt: Rendering Modes https://nuxt.com/docs/guide/concepts/rendering, read 18 November 2026
  8. React Router: Rendering Strategies https://reactrouter.com/start/framework/rendering, read 18 November 2026
  9. SvelteKit page options https://svelte.dev/docs/kit/page-options, read 18 November 2026
  10. Anthropic: Web fetch tool https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-fetch-tool, read 18 November 2026
  11. Cloudflare: Markdown for Agents https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/, read 18 November 2026
  12. Vercel: Make your site readable by AI agents https://vercel.com/kb/guide/make-your-site-readable-by-ai-agents, read 18 November 2026

Last reviewed 18 November 2026