SSR renders HTML on each request so it can use per‑request data like auth and headers, but costs server time. SSG pre‑renders at build time and serves static files, making pages very fast and cacheable, but data is as fresh as your build or ISR revalidate window.