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)
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
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
HOSTwith the value of IP of the machine you are running razzle on it.and then run
razzle startGG