Course map
Stage 1: App Router Foundations
Stage 2: The Rendering Model
Stage 3: Data, Caching and Mutations
Stage 4: Full-Stack Next.js
Stage 5: Production and Specialization

Part 18 / Topic 7 of 8

Documented only — not run, no platform or multi-instance setup exists in this course

Everything below is stated directly from the installed self-hosting.md, deploying.md, and deploying-to-platforms.md guides. None of it was deployed, containerized, or run across more than one process on this machine.

  • Deployment targets (deploying.md's own table): a Node.js server (next start, "All" feature support), a Docker container ("All"), a static export ("Limited" — no Server Actions, Route Handlers requiring a server, or Cache Components' dynamic half), and platform Adapters (Vercel and Bun are the two verified adapters as of this install; Cloudflare/Netlify/others offer their own unverified integrations). This course picked none of these — no account was created on any platform for this course.
  • Reverse proxy and streaming: self-hosting.md recommends a reverse proxy (nginx or similar) in front of any self-hosted Next.js server for malformed-request/rate-limit/payload-size handling, and states that streaming responses (this course's own <Suspense> boundaries, Parts 2/9/15) need that proxy configured to disable response buffering (X-Accel-Buffering: no for nginx specifically) — without it, a reverse proxy can silently buffer a whole streamed response before forwarding it, erasing the time-to-first-byte benefit Partial Prerendering (Part 3's partialPrefetching) exists for. No reverse proxy was installed to confirm this.
  • Multi-instance cache coordination: by default, Next's cache (both the route cache and "use cache") is in-memory, per process. The docs state directly: "calling revalidateTag()/updateTag() on one instance only invalidates the cache on that instance. Other instances continue serving stale content until they independently discover the invalidation." This course's capstones have never run as more than one process at once, so this was never exercised — it is stated here as the single most important fact for anyone taking this harness's cacheLife/cacheTag lessons (Parts 10/11/16) into a real multi-server deployment: a custom, shared cache handler (Redis or similar, per self-hosting.md's own linked example) is what the docs say production needs, not this course's default in-memory behavior.
  • Version skew / deploymentId: rolling deployments across multiple instances can serve a client JS bundle built against one server version to a server instance running a different one; deploymentId is the documented fix (forces a hard navigation instead of a broken client-side one on mismatch). Not exercised — this course has only ever run one build at a time.
  • Server Functions encryption key: Server Action closures are encrypted with a key generated fresh per build by default; multiple instances need the same key (NEXT_SERVER_ACTIONS_ENCRYPTION_KEY) or one instance's encrypted action can't be decrypted by another. Directly relevant to this course's own Server Actions (Part 12 onward) the moment there is more than one server process — never tested here, because there never was more than one.

Done here? The practice set for Part 18 — including the solutions — is on the part page.

Search the guide