Razzle: Remote debugging cannot load from http://localhost

Created on 9 Aug 2019  路  1Comment  路  Source: jaredpalmer/razzle

How can I allow for both local dev at http://localhost:3000 as well as remote debugging a mobile device on the local network at the host machine's IP http://10.0.1.10:3000. Accessing the website works however the js bundle never gets loaded. The console log shows the mobile device trying to hit http://localhost:3001/static/js/bundle.js fails because the 'localhost' should really be the IP address. (Server is running on another local network machine)

stale

Most helpful comment

hello @bryaan,
we are going to add this feature for the next release.

for now, what you can do is to simply specify an env variable called HOST with the value of IP of the machine you are running razzle on it.

// .env.development (in root of project next to the package.json)
HOST=192.168.1.100

and then run razzle start

GG

>All comments

hello @bryaan,
we are going to add this feature for the next release.

for now, what you can do is to simply specify an env variable called HOST with the value of IP of the machine you are running razzle on it.

// .env.development (in root of project next to the package.json)
HOST=192.168.1.100

and then run razzle start

GG

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JacopKane picture JacopKane  路  3Comments

jcblw picture jcblw  路  4Comments

piersolenski picture piersolenski  路  4Comments

MaxGoh picture MaxGoh  路  4Comments

krazyjakee picture krazyjakee  路  3Comments