SSR
Server-Side Rendering
Generated at
2026-09-17T13:17:29.953Z
How it works
- This page is a Server Component with dynamic = "force-dynamic".
- await connection() tells Next.js this route depends on the incoming request, so it cannot be prerendered.
- The server runs this function on every request and sends fresh HTML.
- Use SSR when the HTML must be up to date for this request (auth, live prices, personalized data).
How to test
- Production mode is still best: `npm run build && npm run start` in client/.
- Open /ssr and copy the Generated at value.
- Refresh. The timestamp must change every time.
- Run `curl -sI http://localhost:3000/ssr`. Expect Cache-Control with no-store (or similar), not a long s-maxage.
- View Page Source. The timestamp is already in the HTML — the server rendered it before the browser ran JavaScript.