fix: add NEXT_PUBLIC_ADMIN_URL to web deployment for Better Auth trusted origins#646
Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe pull request adds NEXT_PUBLIC_ADMIN_URL environment variable propagation to both preview and production deployment workflows. This variable, derived from ADMIN_ALIAS, is exported globally and passed through vercel deploy commands for the API, Web, and Docs pipelines. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
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 |
🚀 Preview Deployment🔗 Preview Links
Preview updates automatically with new commits |
Fixes Better Auth trusted origins error in web app by adding NEXT_PUBLIC_ADMIN_URL to the deployment workflow.
The auth package requires all 4 URLs in trustedOrigins: WEB, API, MARKETING, and ADMIN. The web deployment was missing ADMIN_URL, causing Better Auth to reject it as an invalid origin.
This completes the full fix across all apps:
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.