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
Currently, http://localhost:8080 won't hot-reload when a ReactQL project is bound to a non-localhost IP due to cross-origin restrictions. This makes it difficult to test over a LAN.
This needs adding to the Webpack dev config:
// Allow any origins, for use with Docker or alternate hosts, etc
headers: {
'Access-Control-Allow-Origin': '*',
},
The text was updated successfully, but these errors were encountered:
I do get an access to the site like before, but I'm still getting blank images and no hot-reloading unfortunately.
I span up a fresh install from the latest kit where I can see the above lines as well, and changed the localhost to 0.0.0.0 on every dev environment related file.
You shouldn't need to change any files. Running this ought to work:
HOST=0.0.0.0 BROWSER_HOST=0.0.0.0 npm start
Make sure you're running the latest kit:
$ reactql version
4.9.2
If that's still not working, try the Docker version:
docker-compose -f docker-compose.dev.yml up
That should bind to localhost on whichever machine you're running it from. If you have Docker set-up to work across the network, you should also be able to access your Docker IP on port 8080
Currently,
http://localhost:8080
won't hot-reload when a ReactQL project is bound to a non-localhost IP due to cross-origin restrictions. This makes it difficult to test over a LAN.This needs adding to the Webpack dev config:
The text was updated successfully, but these errors were encountered: