diff --git a/next.config.ts b/next.config.ts index c5058e1..5190f8d 100644 --- a/next.config.ts +++ b/next.config.ts @@ -6,6 +6,10 @@ const nextConfig: NextConfig = { output: "standalone", // 프로젝트 루트 강제 고정 (상위 디렉토리 오탐 방지) outputFileTracingRoot: path.join(__dirname), + // standalone 빌드 시 마이그레이션 SQL/스크립트도 함께 포함 (컨테이너에서 실행되도록) + outputFileTracingIncludes: { + "*": ["./db/migrations/**/*", "./scripts/migrate-momo.mjs"], + }, }; export default nextConfig;