Repository navigation
fix(auth): stop vercel oauth infinite loop - #125
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Deploy Preview for regal-bunny-0c8efe ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR fixes Vercel API routing loops by removing the rewrites configuration and adds support for configurable frontend API base URLs via the VITE_API_BASE_URL environment variable. It also tightens curl timeout settings in the deploy workflow and updates corresponding documentation. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
|
|
Size Change: +13 B (0%) Total Size: 291 kB
ℹ️ View Unchanged
|
|
Remove self-referential Vercel API rewrite, add VITE_API_BASE_URL support, and enforce deploy webhook curl timeouts.


Summary
/apirewrite that caused508 INFINITE_LOOPVITE_API_BASE_URLsupport so hosted frontend can target a dedicated backend API originRoot Cause
vercel.jsonrewrote/api/:path*tohttps://lucky.lucassantana.tech/api/:path*.When the same custom domain was attached to Vercel, auth requests looped through Vercel and returned
508 INFINITE_LOOP.Validation
npm run type:check --workspace=packages/frontendpython3+yaml.safe_loadnpm run lint --workspace=packages/frontendcurrently fails from existing repo-wide ESLint parser/config issues unrelated to this patchSummary by CodeRabbit
Release Notes
Bug Fixes
New Features
Documentation