facebook / docusaurus

Easy to maintain open source documentation websites.
https://docusaurus.io
MIT License
55.97k stars 8.4k forks source link

CLI: Option to choose which browser to open #971

Closed muuvmuuv closed 5 years ago

muuvmuuv commented 6 years ago

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 commented 6 years ago

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

yangshun commented 5 years ago

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!