86417c2ffe
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>
16 lines
573 B
TypeScript
16 lines
573 B
TypeScript
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;
|