build(next): standalone 빌드에 db/migrations + migrate-momo.mjs 포함
Deploy momo-erp / deploy (push) Successful in 51s
Deploy momo-erp / deploy (push) Successful in 51s
deploy.yml 의 docker compose exec ... npm run migrate:momo 가 컨테이너 안에서 실행되려면 마이그레이션 SQL 과 실행 스크립트가 standalone 번들에 포함되어야 함. outputFileTracingIncludes 옵션으로 자동 복사되도록 설정. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user