Compare commits

...
2 Commits
Author SHA1 Message Date
headporterandClaude Opus 5.5 687f8594d5 feat : 메인 헤드라인 출처 표시를 네이버 뉴스로
SpecialSource Frontend (React) CD / deploy (push) Successful in 15s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 15:08:30 +09:00
headporterandClaude Opus 5.5 8f2255da49 docs : 워커 경로 설정(www.../*) 메모
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 14:34:33 +09:00
3 changed files with 3 additions and 3 deletions

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 코드는 `cloudflare/specialsource-router.js` (대시보드에 수동 붙여 넣기 배포). 단순 전달 + NAS가 꺼져 있으면 공지 화면 (예전의 2초 시간제한·Firebase 폴백·밤 0~8시 Firebase 전환은 업로드를 끊어서 2026-11-30 제거)
- 운영 라우팅: `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 코드는 `cloudflare/specialsource-router.js` (대시보드에 수동 붙여 넣기 배포). 단순 전달 + NAS가 꺼져 있으면 공지 화면. 워커 연결: 루트는 맞춤형 도메인, www는 경로 `www.specialsource.company/*` (끝의 `/*` 빠지면 첫 화면만 워커를 탐) (예전의 2초 시간제한·Firebase 폴백·밤 0~8시 Firebase 전환은 업로드를 끊어서 2026-11-30 제거)
- 배포: GitHub에 푸시(프론트 `main`, 백엔드 `master`) → 개인 Gitea로 자동 동기화 → Gitea runner가 자동 배포. **푸시 = 운영 배포**이므로, 프론트·백엔드 API가 함께 바뀌면 둘 다 푸시해야 함
# 작업 규칙
+1 -1
View File
@@ -208,7 +208,7 @@ export async function fetchFeed(token: string, kind: ListKind, board: string | n
export const fetchBoards = async (token: string): Promise<Board[]> =>
(await call("/api/scraped-posts/boards", token)).json();
/** IT 헤드라인 (GeekNews). 백엔드가 30분마다 피드를 읽어 둠. 로그인 없이 볼 수 있음 */
/** IT 헤드라인 (네이버 뉴스 IT/과학). 백엔드가 30분마다 읽어 둠. 로그인 없이 볼 수 있음 */
export async function fetchHeadlines(): Promise<Headline[]> {
const res = await fetch(`${API_URL}/api/headlines`);
if (!res.ok) throw new Error(`※ 서버 오류 (${res.status})`);
+1 -1
View File
@@ -47,7 +47,7 @@ export default function MainInfo() {
) : (
<div className={styles.dim}>{error.news ? "헤드라인을 불러오지 못했습니다." : "불러오는 중..."}</div>
)}
<div className={styles.footer}>출처: GeekNews · 줄을 누르면 새 탭으로 열림</div>
<div className={styles.footer}>출처: 네이버 뉴스 IT/과학 · 줄을 누르면 새 탭으로 열림</div>
</section>
<section className={styles.win}>