Skip to content

[FIX] 투표 선택지 이미지 R2 버킷 호스트 등록 (400 최적화 에러 수정) - #152

Merged
Emithen merged 1 commit into
developfrom
fix/vote-image-r2-host-develop
Jul 21, 2026
Merged

[FIX] 투표 선택지 이미지 R2 버킷 호스트 등록 (400 최적화 에러 수정)#152
Emithen merged 1 commit into
developfrom
fix/vote-image-r2-host-develop

Conversation

@Emithen

@Emithen Emithen commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

문제

투표 선택지 이미지가 프로필과 다른 R2 버킷(pub-1670751f…r2.dev)에서 서빙되는데, next.config.tsremotePatterns에 미등록되어 next/image 최적화가 거부: 400 · INVALID_IMAGE_OPTIMIZE_REQUEST

수정

remotePatterns에 투표 선택지 이미지 버킷 호스트 추가 (next.config.ts 1파일)

참고

🤖 Generated with Claude Code

Summary by CodeRabbit

  • 버그 수정
    • 추가 이미지 저장소의 원격 이미지를 정상적으로 표시할 수 있도록 지원했습니다.
    • 프로필 및 투표 선택지 이미지 로딩 호환성이 개선되었습니다.

vote-options 이미지가 프로필과 다른 R2 버킷(pub-1670751f...)에서 서빙되어
remotePatterns 미등록으로 400 INVALID_IMAGE_OPTIMIZE_REQUEST 발생하던 문제 수정

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel
vercel Bot temporarily deployed to Preview – valan-se-web-cms-19s6 July 21, 2026 15:23 Inactive
@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
valan-se-web Ready Ready Preview, Comment Jul 21, 2026 3:24pm
valanse-origin-repo Ready Ready Preview, Comment Jul 21, 2026 3:24pm

@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1ba1ba8e-39c4-4853-8fcc-fa40aa90740b

📥 Commits

Reviewing files that changed from the base of the PR and between 2c64fea and d7b4d16.

📒 Files selected for processing (1)
  • apps/web/next.config.ts

Walkthrough

Next.js의 images.remotePatterns에 새 R2 버킷 호스트를 추가하고, 기존 및 신규 버킷의 용도를 주석으로 구분했습니다.

Changes

원격 이미지 호스트 설정

Layer / File(s) Summary
R2 원격 패턴 추가
apps/web/next.config.ts
images.remotePatterns에 새 HTTPS R2 버킷 호스트를 추가하고 기존 호스트 주석을 갱신했습니다.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Poem

당근을 든 토끼가 뛰어요
새 이미지 길이 열렸어요
프로필 버킷, 투표 버킷
HTTPS로 안전히 나란히
토끼도 미소 지어요 🐇

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 제목이 투표 선택지 이미지용 R2 버킷 호스트를 next.config.ts에 등록해 400 이미지 최적화 오류를 수정하는 변경을 정확히 요약합니다.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/vote-image-r2-host-develop

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install timed out. The project may have too many dependencies for the sandbox.


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.

@Emithen
Emithen merged commit 388d699 into develop Jul 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant