docs : 워커 폴백 제거 반영, 학습노트 14~15 추가 (도커 로그, 조각 업로드·다운로드)
SpecialSource Frontend (React) CD / deploy (push) Successful in 14s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
headporterandClaude Opus 5.5 committed 2026-11-30 14:04:23 +09:00
1 parent 9a8ee17075
commit bee2ac9153
2 files changed
+41 -1

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
- `output: "export"` 정적 빌드 → nginx로 서비스. **API Route·Server Action·서버 렌더링 기능 사용 불가**
- API 호출: 개발 `http://localhost:8080`, 운영은 nginx `/api` → 백엔드 `:18080` (8080 아님: 리다이렉트 루프 발생). `NEXT_PUBLIC_API_URL`로 덮어쓰기 가능
- 백엔드(Java): `C:\IdeaProjects\specialsource-homepage-backend` (PC마다 다르면 수정). 빌드는 JDK 17+ 필요 (PC 기본 java가 8이면 `JAVA_HOME` 지정)
- 운영 라우팅: `www`·루트 도메인 → Cloudflare Worker `specialsource-router` → `nas-direct.specialsource.company` → NAS Nginx Proxy Manager(:81 관리) → 컨테이너 `:18082`(이 프로젝트). `new.` → NPM → `:18081`(옛 Vue). 사이트 전환은 NPM의 `nas-direct` 항목 포트만 바꾸면 됨 (www/루트 항목을 바꿔도 Worker 때문에 반영 안 됨). Worker는 NAS 장애 시 Firebase Hosting으로 폴백하는데, Firebase에는 아직 옛 사이트가 올라가 있음
- 운영 라우팅: `www`·루트 도메인 → Cloudflare Worker `specialsource-router` → `nas-direct.specialsource.company` → NAS Nginx Proxy Manager(:81 관리) → 컨테이너 `:18082`(이 프로젝트). `new.` → NPM → `:18081`(옛 Vue). 사이트 전환은 NPM의 `nas-direct` 항목 포트만 바꾸면 됨 (www/루트 항목을 바꿔도 Worker 때문에 반영 안 됨). Worker는 단순 전달만 함 (예전의 2초 시간제한·Firebase 폴백·밤 0~8시 Firebase 전환은 업로드를 끊어서 2026-11-30 제거)
- 배포: GitHub에 푸시(프론트 `main`, 백엔드 `master`) → 개인 Gitea로 자동 동기화 → Gitea runner가 자동 배포. **푸시 = 운영 배포**이므로, 프론트·백엔드 API가 함께 바뀌면 둘 다 푸시해야 함
# 작업 규칙