Skip to content
Discussion options

You must be logged in to vote

SSR in Next.js App Router — Full Breakdown


What is SSR in the Context of App Router?

In the App Router (introduced in Next.js 13+), SSR isn't a mode you "opt into" like the old getServerSideProps — it's the default behavior. Every component in the app/ directory is a React Server Component (RSC) by default, meaning it renders on the server on every request.

The mental shift: instead of thinking "which pages use SSR?", think "which components need to run on the client?" — and explicitly mark those with 'use client'.


How SSR Works in App Router

Browser Request
Next.js Server
Server Components render → fetch data directly (no API round-trip)
HTML streamed to browser

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by asadullah027
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants