summaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorGravatar Aleš Vaupotič <alesvaupotic@users.noreply.github.com> 2021-09-08 19:36:00 +0200
committerGravatar GitHub <noreply@github.com> 2021-09-08 10:36:00 -0700
commitd1370e9d69476b237c29ad27eefdf4141ae23f1f (patch)
tree0ebebcf2dac96980a8cead69d1786c4c8de68823 /docs/src
parentd71b75b2a6897b678af39368016e3266fffc6a01 (diff)
downloadastro-d1370e9d69476b237c29ad27eefdf4141ae23f1f.tar.gz
astro-d1370e9d69476b237c29ad27eefdf4141ae23f1f.tar.zst
astro-d1370e9d69476b237c29ad27eefdf4141ae23f1f.zip
Opening app to all IPs instead of localhost (#1339)
I see people often ask about opening up the app to local network so this looked like a good place to explain how to do it.
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/pages/installation.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/docs/src/pages/installation.md b/docs/src/pages/installation.md
index 9cedb03ef..44961a7d2 100644
--- a/docs/src/pages/installation.md
+++ b/docs/src/pages/installation.md
@@ -139,7 +139,15 @@ You can create more pages in the `src/pages` directory, and Astro will use the f
npm run dev
```
-Astro will now start serving your application on `http://localhost:3000`. By opening this URL in your browser, you should see the Astro's “Hello, World”
+Astro will now start serving your application on `http://localhost:3000`. By opening this URL in your browser, you should see the Astro's “Hello, World”.
+
+If you need to share your development progress on the local network or check out the app from a phone, just add the following [snowpack](https://www.snowpack.dev/reference/configuration#devoptionshostname) option to `astro.config.mjs`:
+
+```js
+devOptions: {
+ hostname: "0.0.0.0"
+}
+```
## [Build Astro](#build-astro)