import type { NextConfig } from "next"; import path from "path"; const nextConfig: NextConfig = { // Docker 배포용 — .next/standalone 번들 생성 (이미지 경량화) output: "standalone", // 프로젝트 루트 강제 고정 (상위 디렉토리 오탐 방지) outputFileTracingRoot: path.join(__dirname), // standalone 빌드 시 마이그레이션 SQL/스크립트도 함께 포함 (컨테이너에서 실행되도록) outputFileTracingIncludes: { "*": ["./db/migrations/**/*", "./scripts/migrate-momo.mjs"], }, }; export default nextConfig;