feat: vercel.json 파일 추가 및 리라이트 설정 구성#599
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for moadong ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Warning
|
| 파일/경로 | 변경 요약 |
|---|---|
| frontend/vercel.json | 모든 요청을 /로 리라이트하는 규칙 추가 |
Estimated code review effort
🎯 1 (Trivial) | ⏱️ ~2 minutes
Possibly related issues
- [fix] Vercel SPA 라우팅 404 Not Found 오류 해결 #598: SPA 라우팅을 위해 모든 프론트엔드 요청을 루트로 리라이트하는
vercel.json규칙 추가와 직접적으로 관련됨.
✨ Finishing Touches
🧪 Generate unit tests
- Create PR with unit tests
- Post copyable unit tests in a comment
- Commit unit tests in branch
fix/#598-vercel-spa-routing
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.
🪧 Tips
Chat
There are 3 ways to chat with CodeRabbit:
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
I pushed a fix in commit <commit_id>, please review it.Explain this complex logic.Open a follow-up GitHub issue for this discussion.
- Files and specific lines of code (under the "Files changed" tab): Tag
@coderabbitaiin a new review comment at the desired location with your query. Examples:@coderabbitai explain this code block.@coderabbitai modularize this function.
- PR comments: Tag
@coderabbitaiin a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.@coderabbitai read src/utils.ts and explain its main purpose.@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.@coderabbitai help me debug CodeRabbit configuration file.
Support
Need help? Create a ticket on our support page for assistance with any issues or questions.
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
CodeRabbit Commands (Invoked using PR comments)
@coderabbitai pauseto pause the reviews on a PR.@coderabbitai resumeto resume the paused reviews.@coderabbitai reviewto trigger an incremental review. This is useful when automatic reviews are disabled for the repository.@coderabbitai full reviewto do a full review from scratch and review all the files again.@coderabbitai summaryto regenerate the summary of the PR.@coderabbitai generate docstringsto generate docstrings for this PR.@coderabbitai generate sequence diagramto generate a sequence diagram of the changes in this PR.@coderabbitai generate unit teststo generate unit tests for this PR.@coderabbitai resolveresolve all the CodeRabbit review comments.@coderabbitai configurationto show the current CodeRabbit configuration for the repository.@coderabbitai helpto get help.
Other keywords and placeholders
- Add
@coderabbitai ignoreanywhere in the PR description to prevent this PR from being reviewed. - Add
@coderabbitai summaryto generate the high-level summary at a specific location in the PR description. - Add
@coderabbitaianywhere in the PR title to generate the title automatically.
Documentation and Community
- Visit our Documentation for detailed information on how to use CodeRabbit.
- Join our Discord Community to get help, request features, and share feedback.
- Follow us on X/Twitter for updates and announcements.
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
frontend/vercel.json (1)
1-3: 정적 자산‧API 경로까지 덮어쓰는 전역 리라이트는 위험할 수 있습니다
"/(.*)"패턴은/_next/*,/static/*,/api/*등 Vercel 내부 자산과 API 요청까지 모두 루트로 돌려보냅니다.
SPA 용도라 하더라도 정적 파일이나 API가 존재한다면 404 또는 잘못된 응답을 유발할 수 있으니, 다음과 같이 예외를 두거나handle: "filesystem"단계를 먼저 선언하는 방식을 고려해 주세요.{ - "rewrites": [{ "source": "/(.*)", "destination": "/" }] + "rewrites": [ + { "source": "/(?!api|_next|static)(.*)", "destination": "/" } + ] }예외 패턴은 프로젝트 구조에 맞게 조정해 주시면 됩니다.

#️⃣연관된 이슈
📝작업 내용
vercel.json파일 추가/로 리라이트하여 SPA 라우터가 처리하도록 설정Summary by CodeRabbit