-
Notifications
You must be signed in to change notification settings - Fork 190
🔧 Update authentication callback URL to use VERCEL_BRANCH_URL #950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
4 Skipped Deployments
|
|
Updates to Preview Branch (refactor_callback_url_to_use_vercel_branch_url) ↗︎
Tasks are run on every commit but only new migration files are pushed.
View logs for this Workflow Run ↗︎. |
|
The schema changes you provided involve a modification to the authentication callback URL generation logic in the
Migration URL: https://liam-app-git-staging-route-06-core.vercel.app/app/projects/4/migrations/18 |
| ? `https://${process.env.SITE_URL}` | ||
| : process.env.VERCEL_URL | ||
| ? `https://${process.env.VERCEL_URL}` | ||
| : process.env.VERCEL_BRANCH_URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝
VERCEL_BRANCH_URL is used for Site URL by Supabase Branching.
Use VERCEL_BRANCH_URL to match the Site URL to the redirect URL during GitHub authentication.
VERCEL_URLis<project-name>-<unique-hash>-<scope-slug>.vercel.app- e.g.
liam-4ag9swfwt-route-06-core.vercel.app/. - https://vercel.com/docs/environment-variables/system-environment-variables#VERCEL_URL
- e.g.
VERCEL_BRANCH_URLis<project-name>-git-<branch-name>-<scope-slug>.vercel.app- e.g.
liam-app-git-staging-route-06-core.vercel.app - https://vercel.com/docs/environment-variables/system-environment-variables#VERCEL_BRANCH_URL
- e.g.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
MH4GF
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍🏻
Issue
Why is this change needed?
What would you like reviewers to focus on?
Testing Verification
What was done
🤖 Generated by PR Agent at a0fead8
VERCEL_BRANCH_URL.VERCEL_URLtoVERCEL_BRANCH_URL.Detailed Changes
actions.ts
Refactor callback URL to use `VERCEL_BRANCH_URL`frontend/apps/app/app/(app)/app/login/actions.ts
VERCEL_URLwithVERCEL_BRANCH_URLfor callback URL.Additional Notes