From 63caeb6073be234bc037079168169301e04cb81a Mon Sep 17 00:00:00 2001 From: Begula <83997633+vedantmgoyal2009@users.noreply.github.com> Date: Thu, 10 Mar 2022 08:52:21 +0530 Subject: [PATCH] docs(cli): add info about development on github codespaces (#6883) * docs: add info about development on github codespaces * docs: move from installation to cli * docs: fix grammar * Update cli.md * add word * Update cli.md * Update cli.md * format Co-authored-by: Joshua Chen --- project-words.txt | 1 + website/docs/cli.md | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/project-words.txt b/project-words.txt index cccb6f5022..7b4d8c4c10 100644 --- a/project-words.txt +++ b/project-words.txt @@ -38,6 +38,7 @@ chedeau cheng clément clsx +codespaces codesandbox contravariance corejs diff --git a/website/docs/cli.md b/website/docs/cli.md index f300d26abe..530c55c7a4 100644 --- a/website/docs/cli.md +++ b/website/docs/cli.md @@ -50,6 +50,16 @@ Please note that some functionality (for example, anchor links) will not work in ::: +:::info Development over network + +When forwarding port 3000 from a remote server or VM (e.g. GitHub Codespaces), you can run the dev server on `0.0.0.0` to make it listen on the local IP. + +```bash npm2yarn +npm run start -- --host 0.0.0.0 +``` + +::: + #### Enabling HTTPS {#enabling-https} There are multiple ways to obtain a certificate. We will use [mkcert](https://github.com/FiloSottile/mkcert) as an example.