- develop: 개발서버 자동 배포 (변경 없음) - main: Stage 자동 배포 → Jenkins 승인 → Production 재빌드+배포 - stage 브랜치 더 이상 사용 안함 - Next.js는 빌드 시 env 바인딩되므로 Stage/Production 별도 빌드
- rsync source 경로 trailing slash 제거 (.next/, node_modules/, public/ → .next, node_modules, public) - trailing slash로 디렉토리 내용이 root에 풀리는 문제 해결 - dev deploy에 --exclude .git, .env*, ecosystem.config.* 추가 - PM2 프로세스명: sam-front → sam-react (개발서버)