feat(deploy): Next standalone 출력 + Dockerfile (NAS self-host Phase 3)

- next.config: output 'standalone' + outputFileTracingRoot(workspace 중첩 방지)
- Dockerfile(멀티스테이지, NEXT_PUBLIC_* build-arg) + .dockerignore
- maxDuration은 Vercel 운영 보호 위해 유지(self-host에선 무시됨)
- 로컬 빌드 검증: .next/standalone/server.js 루트 생성 확인

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-06 14:50:08 +09:00
parent f9d3664608
commit 5d4599642a
3 changed files with 42 additions and 0 deletions

View File

@@ -1,6 +1,10 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
// self-host(NAS) 배포용 standalone 출력. Vercel은 이 설정을 무시하므로 양쪽 호환.
output: 'standalone',
// workspace/ 하위 프로젝트라 Next가 상위를 추적 루트로 오인 → standalone 중첩 방지 위해 고정
outputFileTracingRoot: process.cwd(),
async headers() {
return [
{