모든 framework feature 가 self-hosted 작동
Server Component, RSC streaming, ISR, Server Action, image/font optimization — 다 vanilla Node.js server 에서 next start 통해 돌아. 바뀌는 부분: SSL, process manager, CDN 본인이 운영.
Production server
npm run build 후 npm run start. Default port 3000; -p 로 override. Server 가 default single-process; 살아있게 + scale 위해 process manager (PM2, systemd, launchd, Docker orchestrator).
Reverse proxy
TLS termination, request logging, gzip/brotli 위해 next start 앞에 nginx 또는 Caddy. Caddy 가 가장 단순 — TLS 자동.
Image optimization 이 sharp 필요
Self-hosted 에서 optimizer 가 내부적으로 sharp 사용. 명시적 install 해서 production 이 unoptimized image 로 fallback 안 하게.