yari icon indicating copy to clipboard operation
yari copied to clipboard

enhance(server): introduce SERVER_HOST variable

Open caugner opened this issue 1 year ago • 0 comments

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 avatar Jul 01 '24 13:07 caugner