-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Using the true
option in server.host
doesn't work
#10264
Comments
Good first issue!This is an opportunity for astro users to learn about how astro works by fixing a small but real bug. You can expect to get help setting up the dev environment, and understanding the project structure in What's the bug?The node adapter listens on the wrong address when What's going wrong here?The node adapter reads Where do I start looking?The OP has already identified the relevant line of code in the issue description! |
I would love to take a shot at working on this if that's alright! However, this is my first PR with in the astro repository, so I may need some guidance. |
@SatanshuMishra The CONTRIBUTING.md is always a good place to start. Any questions, feel free to make them here |
A fix would be small and quick enough that assigning someone is not necessary. @SatanshuMishra I am unassigning to keep this issue open to anyone who wants to create a PR. |
Sounds good! I should have a PR up for this hopefully by the end of the day! |
Oops, sorry for unassigning you. I wasn't sure if you were around. I could've waited longer. Sorry for undoing your assignment, @ematipico. |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
The
server.host
option withoutput: "server"
option doesn't build the correct output when used with thetrue
value. The resulting code just checks fortypeof options.host === "boolean"
and uses"localhost"
in this case, not considering the actual value of the (boolean) option. The documentation states that true should instead result in listening to all addresses. Our current workaround is to just use"0.0.0.0"
instead oftrue
.astro/packages/integrations/node/src/standalone.ts
Line 15 in e56c428
What's the expected result?
Setting the
server.host
option should result in a server listening to all addresses.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-pbnej2
Participation
The text was updated successfully, but these errors were encountered: