-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
View Gatsby dev site on multiple devices? #2837
Comments
Looks like localhost got hardcoded:
Interested in putting together a PR to use the actual host value? |
I'd love to! But, I'm not sure how that line needs to change... 🤔 |
To be clear, that line you reference is just a log statement. The actual code DOES use the host value: gatsby/packages/gatsby/src/utils/webpack.config.js Lines 134 to 136 in 5cf7d18
You can achieve what you are trying to do with:
|
Hi, is it also possible to make the auto refresh work? |
I'm hoping to test my Gatsby site on multiple devices during development.
Following the advice of @webOS101 in #864, I ran
gatsby develop --host <my-machine>.local
(substituting<my-machine>
for my actual computer name). Gatsby then said my site is running at http://localhost:8000/ (which it is not).If this is the correct method, what URL do I open each device's browser to in order to view my dev site?
If this is the wrong method, what is the right way to view my Gatsby dev site on multiple devices?
The text was updated successfully, but these errors were encountered: