작업 시작:
git checkout -b feature/작업명
git push origin feature/작업명
기능 완성:
feature/* → develop
으로 PR운영 배포:
deploy
브랜치를 Fast-Forward 해서 Vercel 운영 배포 실행VITE_API_BASE_URL
) 사용http://52.79.237.86:8080
같은 주소 하드코딩 ❌/api
만 사용 → 실제로는 프록시가 처리로컬 (.env.local
)
VITE_API_BASE_URL=/api
→ Vite dev server proxy가 /api
요청을 http://localhost:3000
또는 http://52.79.237.86:8080
으로 전달
Preview (develop/feature)
VITE_API_BASE_URL=/api
→ Vercel Preview 서버리스 함수가 스테이징 백엔드로 프록시
Production (deploy)
VITE_API_BASE_URL=/api
→ Vercel 서버리스 함수가 운영 백엔드(http://52.79.237.86:8080
)로 프록시