This repository was archived by the owner on Nov 30, 2026. It is now read-only.
Repository navigation
Change cloud browser to open primary custom domain (if there is one) - #296
Merged
joetannenbaum merged 2 commits intoNov 24, 2026
Merged
Conversation
cloud browser to open primary custom domain (if there is one)
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the change to prefer verified primary custom domains when opening environments.
No open issues 🎉
What changed in this PR
Updates cloud browser to open an environment’s primary custom domain when its hostname is verified, falling back to the vanity domain otherwise.
Changes:
- Hydrates the primary domain on the environment DTO and adds a browser destination helper, leaving the existing vanity URL unchanged.
- Uses the selected URL for both browser launch and command output.
- Adds tests for verified, unverified, and absent custom domains.
| File | Description |
|---|---|
tests/Feature/BrowserTest.php |
Tests custom-domain selection and vanity-domain fallback. |
app/Dto/Environment.php |
Hydrates the primary domain and adds siteUrl() selection logic. |
app/Commands/Browser.php |
Opens and displays the URL returned by siteUrl(). |
Review effort: Balanced
Collaborator
|
Thank you! |
Contributor
Author
|
Good call on the SSL verification @joetannenbaum I did not think of that! |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
cloud browsernow opens the environment's primary custom domain once it's verified, rather than always using the*.laravel.cloudvanity domain. If the custom domain isn't verified yet, or the environment doesn't have one, it still opens the vanity domain.Noticed this on my app when I'd run the command and it would take me to my app, but logged out, then I realised it was sending me to the cloud domain and not my custom domain.