Skip to content

!HOTFIX: 프록시 수정#248

Merged
jjangminii merged 1 commit intodevelopfrom
fix/#247/thumbnail-title-not-loading
Jan 31, 2026
Merged

!HOTFIX: 프록시 수정#248
jjangminii merged 1 commit intodevelopfrom
fix/#247/thumbnail-title-not-loading

Conversation

@jjangminii
Copy link
Collaborator

@jjangminii jjangminii commented Jan 31, 2026

📌 Related Issues

관련된 Issue를 태그해주세요. (e.g. - close #25)

📄 Tasks

  • 두번째 프록시로 변경

⭐ PR Point (To Reviewer)

📷 Screenshot

Summary by CodeRabbit

릴리즈 노트

  • Chores
    • 외부 콘텐츠 데이터 수집 설정을 업데이트했습니다.

✏️ Tip: You can customize this high-level summary in your review settings.

@jjangminii jjangminii linked an issue Jan 31, 2026 that may be closed by this pull request
@vercel
Copy link

vercel bot commented Jan 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pinback-client-client Ready Ready Preview, Comment Jan 31, 2026 2:34pm
pinback-client-landing Ready Ready Preview, Comment Jan 31, 2026 2:34pm

@github-actions github-actions bot added the fix 버그 수정하라 러브버그 label Jan 31, 2026
@coderabbitai
Copy link

coderabbitai bot commented Jan 31, 2026

개요

프록시 서비스 설정에서 활성 프록시를 CORSProxy.io에서 AllOrigins로 변경했습니다. 기존 CORSProxy.io 구현은 주석 처리되었으며, AllOrigins의 buildUrl 및 extractHtml 구현이 활성화되었습니다.

변경 사항

Cohort / File(s) 요약
프록시 서비스 전환
apps/client/src/shared/utils/fetchOgData.ts
CORSProxy.io 프록시를 주석 처리하고 AllOrigins를 활성 프록시로 변경. buildUrl 및 extractHtml 함수 구현 교체. 나머지 프록시 로직은 유지.

예상 코드 리뷰 노력

🎯 1 (Trivial) | ⏱️ ~3분

추천 레이블

fix

추천 검토자

  • constantly-dev
  • jllee000

토끼의 시

🐰 프록시 서비스 변경으로,
AllOrigins가 무대에 올랐네요!
CORSProxy는 댓글로 물러나고,
새로운 길이 열렸습니다! ✨

🚥 Pre-merge checks | ✅ 3 | ❌ 2
❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning 이 PR은 #248과 연결되어 있지만, 제공된 링크된 이슈는 #25(프로그레스 바 구현)입니다. PR의 실제 변경사항(프록시 수정)과 #25의 요구사항(프로그레스 바 컴포넌트)이 일치하지 않습니다. #248 이슈의 요구사항을 확인하고 PR 변경사항이 해당 이슈를 충족하는지 검증하세요. 현재는 프로그레스 바 구현과 무관한 프록시 변경입니다.
Description check ⚠️ Warning PR description is a template with empty sections; no actual content about the proxy changes is provided. 채우기: Related Issues 섹션에서 관련 이슈 번호 입력, Tasks 섹션에서 프록시 변경 내용 설명, PR Point 섹션에서 검토자에게 전달할 사항 작성.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed 제목이 변경 사항과 일치합니다. 프록시 수정(CORSProxy.io에서 AllOrigins로 변경)이 명확하게 표현되어 있습니다.
Out of Scope Changes check ✅ Passed PR의 모든 변경사항(CORSProxy.io에서 AllOrigins로의 프록시 전환)은 fetchOgData.ts 파일 내에 범위가 명확하며, 코드 구조 변경이나 추가적인 변경은 없습니다.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/#247/thumbnail-title-not-loading

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

✅ Storybook chromatic 배포 확인:
🐿️ storybook

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@apps/client/src/shared/utils/fetchOgData.ts`:
- Around line 73-85: The JSDoc above the CORS proxy configurations is outdated
because only the AllOrigins entry (name: 'AllOrigins', buildUrl, extractHtml)
remains active; update the JSDoc text (around the comment block that used to
describe trying multiple CORS proxies) to a concise description like "Fetches OG
data via a CORS proxy (AllOrigins)" or "CORS 프록시를 통해 OG 데이터를 가져옵니다", and remove
the part that says it will try multiple proxies simultaneously so the comment
accurately reflects the current AllOrigins implementation.
🧹 Nitpick comments (1)
apps/client/src/shared/utils/fetchOgData.ts (1)

88-91: JSDoc 주석이 현재 구현과 불일치

주석에 "여러 CORS 프록시를 동시에 시도"라고 되어 있지만, 현재는 AllOrigins 단일 프록시만 사용하고 있습니다. 주석을 현재 구현에 맞게 업데이트하면 좋겠습니다.

📝 주석 수정 제안
 /**
  * 주어진 URL에서 OG 데이터를 가져옵니다.
- * 여러 CORS 프록시를 동시에 시도하여 가장 먼저 성공한 결과를 사용합니다.
+ * CORS 프록시를 통해 OG 데이터를 가져옵니다.
  */

Comment on lines 73 to +85
// {
// name: 'AllOrigins',
// name: 'CORSProxy.io',
// buildUrl: (targetUrl: string) =>
// `https://api.allorigins.win/get?url=${encodeURIComponent(targetUrl)}`,
// extractHtml: (response: AxiosResponse) => response.data?.contents,
// `https://corsproxy.io/?${encodeURIComponent(targetUrl)}`,
// extractHtml: (response: AxiosResponse) => response.data,
// },
// TODO: 2개까지 보낼 필요 없어서 일단 주석처리
{
name: 'AllOrigins',
buildUrl: (targetUrl: string) =>
`https://api.allorigins.win/get?url=${encodeURIComponent(targetUrl)}`,
extractHtml: (response: AxiosResponse) => response.data?.contents,
},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

cd /tmp && find . -name "fetchOgData.ts" -type f 2>/dev/null | head -20

Repository: Pinback-Team/pinback-client

Length of output: 53


🏁 Script executed:

git ls-files | grep -i fetchogdata

Repository: Pinback-Team/pinback-client

Length of output: 114


🏁 Script executed:

find . -path "*/client/src/shared/utils/fetchOgData.ts" -type f

Repository: Pinback-Team/pinback-client

Length of output: 116


🏁 Script executed:

fd "fetchOgData.ts"

Repository: Pinback-Team/pinback-client

Length of output: 114


🏁 Script executed:

cat -n apps/client/src/shared/utils/fetchOgData.ts 2>/dev/null || find . -name "fetchOgData.ts" -exec cat -n {} \;

Repository: Pinback-Team/pinback-client

Length of output: 4395


🏁 Script executed:

#!/bin/bash
# Test AllOrigins API with a simple example URL
TEST_URL="https://example.com"
echo "Testing AllOrigins API response structure..."
curl -s "https://api.allorigins.win/get?url=${TEST_URL}" | head -c 1000
echo -e "\n---\nChecking response fields..."
curl -s "https://api.allorigins.win/get?url=${TEST_URL}" | jq 'keys' 2>/dev/null || echo "jq parsing failed or service unavailable"

Repository: Pinback-Team/pinback-client

Length of output: 839


AllOrigins API 검증 완료 - JSDoc 수정 필요

AllOrigins API(api.allorigins.win)는 정상적으로 작동하며, 응답 형식이 예상대로 contents 필드를 포함하고 있습니다. 코드의 response.data?.contents 추출 로직이 정확합니다.

다만 88-91줄의 JSDoc 주석이 이제 정확하지 않습니다. 현재는 AllOrigins 하나만 활성화되어 있으므로 "여러 CORS 프록시를 동시에 시도"라는 설명을 "CORS 프록시를 통해 OG 데이터를 가져옵니다" 등으로 수정하세요.

🤖 Prompt for AI Agents
In `@apps/client/src/shared/utils/fetchOgData.ts` around lines 73 - 85, The JSDoc
above the CORS proxy configurations is outdated because only the AllOrigins
entry (name: 'AllOrigins', buildUrl, extractHtml) remains active; update the
JSDoc text (around the comment block that used to describe trying multiple CORS
proxies) to a concise description like "Fetches OG data via a CORS proxy
(AllOrigins)" or "CORS 프록시를 통해 OG 데이터를 가져옵니다", and remove the part that says it
will try multiple proxies simultaneously so the comment accurately reflects the
current AllOrigins implementation.

@jjangminii jjangminii merged commit ea43c73 into develop Jan 31, 2026
11 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix 버그 수정하라 러브버그

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fix] 썸네일 및 제목 오류

2 participants