Currently we are limited to
localhost
,
lan
, or
tunnel
for where we want to host our locally served web app. I'd like to be able to customize the host to an entry in my
/etc/hosts
file. This allows us to have a more secure infra by not allowing
localhost
to hit our backend APIs, and allowing for a specified host that's not public to hit our backend.
Features like this are currently supported in
vite
and
webpack
. It seems like metro supports this, but the start script for expo throws an error if we don't use localhost, lan, or tunnel
Please reach out if you have any questions, or have a quick workaround. This is crucial for us to develop locally on web
Thanks in advance