fix(invite): Fix localhost being used in invite links and in UI - #764
Merged
Conversation
…seUrl - Updated getBaseUrl() in utils.ts to fall back to AUTH_URL environment variable instead of hardcoded 'localhost:3000' when headers are not available - Updated email preview props in inviteUserEmail.tsx, joinRequestApprovedEmail.tsx, and joinRequestSubmittedEmail.tsx to use example.sourcebot.dev instead of localhost URLs This fixes the issue where org URL and invite links were being generated with localhost when the host/protocol headers were not available. Co-authored-by: michael <michael@sourcebot.dev>
|
Cursor Agent can help with this pull request. Just |
Contributor
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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 |
- Changed example URL from example.sourcebot.dev to sourcebot.example.com - Added changelog entry for PR #764 Co-authored-by: michael <michael@sourcebot.dev>
msukkari
marked this pull request as ready for review
January 21, 2026 00:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes hardcoded
localhostin org URL and invite links by usingAUTH_URLas fallback ingetBaseUrl.The
getBaseUrlfunction previously defaulted tolocalhost:3000when request headers were missing, leading to incorrect URLs in emails and other contexts. This change ensures that the canonicalAUTH_URLis used when headers are unavailable. Email preview props were also updated for consistency.Fixes #763
Linear Issue: SOU-238