Skip to content

refactor(web): 이미지 URL 유틸을 normalizeImageUrlToUploadCdn로 단일화#513

Merged
manNomi merged 1 commit intomainfrom
codex/cdn-upload-unify-main-clean
May 3, 2026
Merged

refactor(web): 이미지 URL 유틸을 normalizeImageUrlToUploadCdn로 단일화#513
manNomi merged 1 commit intomainfrom
codex/cdn-upload-unify-main-clean

Conversation

@manNomi
Copy link
Copy Markdown
Contributor

@manNomi manNomi commented May 3, 2026

작업 개요

  • convertUploadedImageUrl, convertImageUrl 래퍼 함수를 제거하고,
  • Web 호출부를 normalizeImageUrlToUploadCdn 직접 사용으로 통일했습니다.
  • 기존 CDN 정규화 정책(upload 기준)은 변경하지 않았습니다.

변경 사항

  • apps/web/src/utils/fileUtils.ts

    • convertUploadedImageUrl 제거
    • convertImageUrl 제거
    • 파일 유틸(downloadFile, downloadLocalFile, getFileExtension, getFileNamePrefix)은 유지
  • 이미지 URL 사용처 치환

    • @/utils/fileUtils -> @/utils/cdnUrl
    • convertUploadedImageUrl(x) -> normalizeImageUrlToUploadCdn(x)
    • convertImageUrl(x) -> normalizeImageUrlToUploadCdn(x)

검증

  • 정적 검색
    • convertUploadedImageUrl|convertImageUrl 참조 0건 확인
  • Web 검사
    • pnpm --filter @solid-connect/web run lint:check 통과
    • pnpm --filter @solid-connect/web run typecheck 통과

영향 범위

  • 외부 API 계약/서버 스키마 변경 없음
  • 내부 유틸 사용 방식만 단순화

@manNomi manNomi requested review from enunsnv and wibaek as code owners May 3, 2026 14:49
@vercel
Copy link
Copy Markdown

vercel Bot commented May 3, 2026

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

Project Deployment Actions Updated (UTC)
solid-connection-web Ready Ready Preview, Comment May 3, 2026 2:53pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
solid-connect-web-admin Skipped Skipped May 3, 2026 2:53pm

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 3, 2026

Warning

Rate limit exceeded

@manNomi has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 28 minutes and 36 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 819f6f0e-b004-48d5-ad4a-1b43b09ff84c

📥 Commits

Reviewing files that changed from the base of the PR and between 49ba3d3 and b81ec3c.

📒 Files selected for processing (11)
  • apps/web/src/app/(home)/_ui/PopularUniversitySection/_ui/PopularUniversityCard.tsx
  • apps/web/src/app/community/[boardCode]/PostCards.tsx
  • apps/web/src/app/community/[boardCode]/[postId]/CommentSection.tsx
  • apps/web/src/app/community/[boardCode]/[postId]/Content.tsx
  • apps/web/src/app/mentor/[id]/_ui/MentorDetialContent/_ui/MentorArticle/index.tsx
  • apps/web/src/app/mentor/modify/_ui/ModifyContent/_ui/ArticlePanel/index.tsx
  • apps/web/src/app/my/modify/_ui/ModifyContent/_ui/ImageInputFiled/_hooks/useImageInputHandler.ts
  • apps/web/src/app/university/[homeUniversity]/[id]/_ui/UniversityDetail/index.tsx
  • apps/web/src/components/mentor/ArticleBottomSheetModal/hooks/useArticleSchema.ts
  • apps/web/src/components/ui/UniverSityCard/index.tsx
  • apps/web/src/utils/fileUtils.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/cdn-upload-unify-main-clean

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
Review rate limit: 0/1 reviews remaining, refill in 28 minutes and 36 seconds.

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

@github-actions github-actions Bot added the web label May 3, 2026
@manNomi manNomi merged commit 6dd12bc into main May 3, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant