Next.js Self-Hosting
Installation
SKILL.md
Next.js Self-Hosting
Expert guidance on self-hosting Next.js — reverse proxy, caching, ISR, multi-instance, Docker, streaming, version skew, and environment variables.
@doc-version: 16.2.6
Core Concepts
Self-hosting Next.js = run next start on your own infrastructure (Node.js server, Docker, Kubernetes) — ทุก feature ทำงานได้ แต่ต้อง configure บางอย่างเอง
Guidelines
1. Reverse Proxy (แนะนำ)
ใช้ nginx/Caddy/Traefik หน้า Next.js server: