You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It could be useful during development together with using Tailscale for example. Otherwise static resources are returned from localhost, but are not returned from public ip address
The text was updated successfully, but these errors were encountered:
The web server is only available on the internal loopback address by default. This is deliberate behavior for security reasons, since the local network environment may not be trusted. However, it can be useful to run the web server on a different address when developing with esbuild inside of a virtual machine/docker container, or to request development assets from a remote testing device on the same network at a different IP address. To do that you need to specify the host here. You can set the host on the command line by using --serve=192.168.0.1:8000 instead of just --serve.
Specifying 0.0.0.0 using --serve=0.0.0.0:8000 should work fine.
I might change --serve to default to 0.0.0.0 instead of 127.0.0.1 though since it's a common thing to develop on e.g. a mobile device. You would still be able to do a local-only server with --serve=127.0.0.1:8000 anyway.
It could be useful during development together with using Tailscale for example. Otherwise static resources are returned from localhost, but are not returned from public ip address
The text was updated successfully, but these errors were encountered: