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!
massively in favour of this! very annoying at the moment
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.
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.
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
Most helpful comment
A new config parameter was added in the latest release of 2.23.0 where you can specify
autoLaunchin yournetlify.tomlto disable the auto-launch of browser whennetlify devstarts. e.g.