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
[now dev] Add --listen
/ -l
flag, deprecate --port
/ -p
#2720
Conversation
This changes the default network interface that `now dev` binds to, in order to prevent operating system firewalls from showing a confirmation prompt in order to run. Fixes #2704.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought @TooTallNate already made this change 🤔
--bind
/ -b
flag--listen
/ -l
flag
--listen
/ -l
flag--listen
/ -l
flag, deprecate --port
/ -p
Codecov Report
@@ Coverage Diff @@
## canary #2720 +/- ##
==========================================
+ Coverage 13.57% 13.71% +0.14%
==========================================
Files 261 262 +1
Lines 10536 10569 +33
Branches 1356 1366 +10
==========================================
+ Hits 1430 1450 +20
- Misses 8961 8970 +9
- Partials 145 149 +4
Continue to review full report at Codecov.
|
Accidentally added in #2720.
Accidentally added in #2720.
* [now dev] Add `--bind` / `-b` flag This changes the default network interface that `now dev` binds to, in order to prevent operating system firewalls from showing a confirmation prompt in order to run. Fixes #2704. * Change to `--listen` * Default port 3000 * Fix unit * Fix `--port` * Use `-l` for integration tests * Add unit tests
Accidentally added in #2720.
Deprecates
--port
in favor of a new--listen
flag, which matches the behavior ofserve
. This allows for binding to a specific network interface, as well as Unix socket files or Windows named pipes.