Skip to content
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

CLI: Option to choose which browser to open #971

Closed
muuvmuuv opened this issue Sep 19, 2018 · 2 comments
Closed

CLI: Option to choose which browser to open #971

muuvmuuv opened this issue Sep 19, 2018 · 2 comments
Labels
feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. good first issue If you are just getting started with Docusaurus, this issue should be a good place to begin.

Comments

@muuvmuuv
Copy link
Contributor

I'm using Firefox Developer Edition as my primary developing browser and when I do the docusaurus-start it opens my Firefox for private use only.
It would be nice to have somewhere an option to set the browser/browser path of choice.

@endiliey endiliey added the feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. label Sep 21, 2018
@endiliey
Copy link
Contributor

endiliey commented Sep 21, 2018

In v1 it is based on react-dev-utils openBrowser
So you might want to set process.env.BROWSER;

@yangshun yangshun added the good first issue If you are just getting started with Docusaurus, this issue should be a good place to begin. label Oct 13, 2018
@yangshun
Copy link
Contributor

Just tested using process.env.BROWSER in the CLI via

$ BROWSER=firefox npm start

and it indeed opened up in Firefox. Docusarus wouldn't need to implement this, instead we could add this tip to the documentation instead. This task is up for grabs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. good first issue If you are just getting started with Docusaurus, this issue should be a good place to begin.
Projects
None yet
Development

No branches or pull requests

3 participants