With SSR, the browser or crawler asks for a URL and receives finished HTML. JavaScript then hydrates the page to make it interactive. Next.js, Nuxt, SvelteKit, Remix and Astro (in server mode) all support it.
Why it matters for SEO and AI search
Googlebot renders JavaScript, but in a second stage that can lag behind the crawl. Most AI crawlers, including GPTBot, ClaudeBot and PerplexityBot, do not run JavaScript at all. With SSR every crawler gets the same complete content on the first fetch.
SSR versus the other modes
| Mode | HTML built | Good for |
|---|---|---|
| SSR | On each request | Personalized or fast-changing pages |
| SSG | At build time | Content that changes rarely |
| ISR | At build, then regenerated on a schedule or trigger | Large catalogs |
| CSR | In the browser | Logged-in app screens |
Example
In the Next.js App Router, a server component fetches data on the server, so the HTML response already contains the product name and price:
export default async function Page({ params }) {
const product = await getProduct(params.slug);
return <h1>{product.name}</h1>;
}
Common mistakes
- Rendering the shell on the server but fetching the main content in a client component with
useEffect. The HTML is still empty where it counts. - Slow server responses that hurt Time to First Byte and LCP. Add caching.
- Different content on server and client, which causes hydration errors.
How Renderly handles it
We check what each crawler receives in raw HTML before anything else. See technical SEO for JavaScript and headless sites and our Next.js SEO audit.