serve icon indicating copy to clipboard operation
serve copied to clipboard

Suggestion: Add an option('-o --open' for example) to open browser window after starting the server

Open Terry-Su opened this issue 4 years ago • 2 comments

Hi, I really apprecite this server tool you built, which has elegant ui in modern style. Especially servewon't treats./publicunder root directory as default serving path, this is why I start to useserveinstead ofhttp-server`.

However, it seems both tools have own advantage. http-server support configuring opening browser window after starting server , but serve doesn't support. So I propose that serve can add this feature. Thanks.

Terry-Su avatar Apr 02 '20 05:04 Terry-Su

That feature request has been raised before in https://github.com/zeit/serve/pull/454, https://github.com/zeit/serve/issues/425, and https://github.com/zeit/serve/pull/116, which were closed in the interest of keeping things simple. Since serve is not particularly simple now (has copy to clipboard enabled by default, flags to use certificates, etc.) I wonder if the maintainers might reconsider adding a flag that calls opn or open or some other library for opening urls? If so I'd be happy to go ahead and put in the PR.

zacanger avatar Apr 30 '20 03:04 zacanger

I forked 🤷 https://github.com/ungoldman/serve

ungoldman avatar Apr 18 '22 21:04 ungoldman