[Release] v1.0.1 - Vercel SPA 새로고침 404 핫픽스#25
Conversation
새로고침 시 클라이언트 라우트가 404로 떨어지던 문제 해결. 모든 경로를 /index.html로 rewrite하여 React Router가 처리하도록 vercel.json 추가.
[!HOTFIX] Vercel SPA fallback rewrite로 새로고침 404 해결
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
🔍 PR 요약
#23)를 main으로 반영하는 패치 릴리즈🧾 관련 이슈
🛠️ 주요 변경 사항
vercel.json신규 추가: 모든 unmatched 경로를/index.html로 SPA fallback rewrite{ "rewrites": [ { "source": "/(.*)", "destination": "/index.html" } ] }🧠 의도 및 배경
https://k-statra-frontend.vercel.app)에서 헤더 네비게이션을 통한 페이지 이동은 정상 동작하지만, 임의의 클라이언트 라우트(/payments,/matches,/my-business등)에서 새로고침 또는 URL 직접 진입 시 Vercel이 404를 응답하는 문제가 발견됨.