Repository navigation
Use Default Browser with Vite --open on macOS #24084
theAdhocracy
started this conversation in
Feedback
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have Firefox installed on macOS as my primary development browser. It is also my default browser, and the one that I expect to be used by tools, unless otherwise specified.
Currently, when I run something like
vite --port 3000 --openon macOS, it loads the web server correctly, but then launches the site in any installed Chromium browser. This occurs even if no Chromium browsers are open, but other browsers are.I'm aware that I can override this behaviour with e.g.
BROWSER=openprefixed to my start command, but it just feels like the default behaviour should be to use the default browser, as registered in the OS, rather than picking the "nearest" Chromium option.All reactions