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

assign Hosting port using portUtils #5119

Merged
merged 3 commits into from
Oct 13, 2022
Merged

assign Hosting port using portUtils #5119

merged 3 commits into from
Oct 13, 2022

Conversation

bkendall
Copy link
Contributor

Description

Instead of relying on custom port-finding logic in the Hosting emulator, utilize the portUtils from the emulator to get a port. Additionally, report back the port that is used to the Hosting emulator's registry information, which will allow the registry to correctly see that the Hosting emulator has started.

Scenarios Tested

A setup with Hosting + Functions works wonderfully, so does a Next.js app that starts functions along side Hosting. (all on macOS)

@codecov-commenter
Copy link

codecov-commenter commented Oct 13, 2022

Codecov Report

Base: 56.16% // Head: 56.16% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (57f8e60) compared to base (a5463fc).
Patch coverage: 18.51% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5119   +/-   ##
=======================================
  Coverage   56.16%   56.16%           
=======================================
  Files         308      308           
  Lines       20711    20714    +3     
  Branches     4191     4194    +3     
=======================================
+ Hits        11632    11634    +2     
+ Misses       8071     8070    -1     
- Partials     1008     1010    +2     
Impacted Files Coverage Δ
src/emulator/constants.ts 75.55% <ø> (ø)
src/emulator/hostingEmulator.ts 23.52% <0.00%> (-5.05%) ⬇️
src/serve/hosting.ts 35.38% <20.00%> (+2.05%) ⬆️
src/emulator/portUtils.ts 47.48% <25.00%> (-1.77%) ⬇️
src/emulator/auth/state.ts 85.43% <0.00%> (+0.56%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

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 this pull request may close these issues.

None yet

3 participants