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

Make automatic open of the browser optional #615

Closed
janbaer opened this issue Nov 17, 2019 · 5 comments · Fixed by #631
Closed

Make automatic open of the browser optional #615

janbaer opened this issue Nov 17, 2019 · 5 comments · Fixed by #631

Comments

@janbaer
Copy link

janbaer commented Nov 17, 2019

Could it be possible to make it possible that the netlify dev command opens the browser automatically? My browser is constantly opened and I don't need this feature. It's also some annoying for me because the browser that I use is not the default browser. It's a special nightly build of the Chromium browser. So whenever I run the netlify dev command a second instance of my browser will be startet. Could you please make this feature optional? Thanks in advance!

@frednomoon
Copy link

massively in favour of this! very annoying at the moment

@therobinkim
Copy link

One thing I've noticed is that if I close the browser tab/window too soon after it opens up, I immediately get a socket hang up error and netlify dev crashes.

@RaeesBhatti
Copy link
Contributor

I've created a PR to allow the users to configure this behavior. I'll try to get this merged and released today. But in the mean time you can do a local npm link of raees/autoLaunchConfig branch to use the changes.

@RaeesBhatti
Copy link
Contributor

A new config parameter was added in the latest release of 2.23.0 where you can specify autoLaunch in your netlify.toml to disable the auto-launch of browser when netlify dev starts. e.g.

[dev]
  autoLaunch = false

@jcubic
Copy link

jcubic commented Nov 30, 2023

Is there a way to set the default browser? I have everywhere in my system set to Firefox. But Netlify opens Google Chrome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants