From 86417c2ffee2435da1c49843ff05cc367af04b66 Mon Sep 17 00:00:00 2001 From: chpark Date: Sat, 2 May 2026 00:46:11 +0900 Subject: [PATCH] =?UTF-8?q?build(next):=20standalone=20=EB=B9=8C=EB=93=9C?= =?UTF-8?q?=EC=97=90=20db/migrations=20+=20migrate-momo.mjs=20=ED=8F=AC?= =?UTF-8?q?=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit deploy.yml 의 docker compose exec ... npm run migrate:momo 가 컨테이너 안에서 실행되려면 마이그레이션 SQL 과 실행 스크립트가 standalone 번들에 포함되어야 함. outputFileTracingIncludes 옵션으로 자동 복사되도록 설정. Co-Authored-By: Claude Opus 4.7 (1M context) --- next.config.ts | 4 ++++ 1 file changed, 4 insertions(+) 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;