-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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-static-build] Fix dev server port detection #2879
[now-static-build] Fix dev server port detection #2879
Conversation
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.
If @AndyBitz and @TooTallNate have no objections, this looks really good!
Codecov Report
@@ Coverage Diff @@
## canary #2879 +/- ##
=======================================
Coverage 13.38% 13.38%
=======================================
Files 268 268
Lines 10342 10342
Branches 1218 1218
=======================================
Hits 1384 1384
Misses 8896 8896
Partials 62 62 Continue to review full report at Codecov.
|
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.
Looks good to me, thanks!!
What do you think @TooTallNate ?
Up :) |
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.
Tested and it works nicely. There's a few "tweaks" I'd still like to make, but I will do that in a separate PR. Thanks @callain!
Thanks ! I'm sure it will help a lot of users 😃 |
* [now-static-build] Fix dev server detection * Code review * Remove unused dependency * Fix the checking by really waiting until the port is reachable
Really check if the port is reachable instead of reading the console data.
For example CRA does not show the devPort in the console if there is a warning in the code, meaning
now dev
fail to start.Fixes #2856