- Term
- Server-side rendering
- Also called
- SSR, static generation, ISR
- Topic
- Engineering
There are three common ways to do it:
- Static generation: the page is built once, at deploy time. Fastest, for pages that rarely change.
- Incremental regeneration: a static page is rebuilt in the background on a schedule, for content that changes (a blog, a home page).
- Server rendering per request: for pages that depend on who is asking.
Search engines, AI assistants and slow phones all read server-rendered pages easily. That is why we render on the server by default and add browser JavaScript only where a component needs it.