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

enhance(server): introduce SERVER_HOST variable #11394

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Jul 1, 2024

Summary

Fixes #2298.

Problem

Currently, it isn't possible to preview the local dev environment on a different local device, like a smartphone, because the server is only reachable locally.

Solution

Introduce a SERVER_HOST environment variable that allows accessing the server when setting it to 0.0.0.0.


How did you test this change?

Ran SERVER_HOST=0.0.0.0 yarn start:static-server and verified I can access the server from another device on the local network.

@caugner caugner requested a review from a team as a code owner July 1, 2024 13:41
@github-actions github-actions bot added the idle label Jul 31, 2024
Copy link
Contributor

@argl argl Aug 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I would call the variable BIND_ADDRESS or similar, since we are handling ip addresses. Otherwise, good and very handy to have.

@argl argl self-requested a review August 6, 2024 11:22
@github-actions github-actions bot removed the idle label Aug 6, 2024
@github-actions github-actions bot added the idle label Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow for custom host
2 participants