Add documentation about using development server behind a proxy #603 (#688)

* Add documentation to launch development server behind a proxy #603

* Update getting-started-installation.md

* Update getting-started-installation.md
This commit is contained in:
Sébastien Loix 2018-05-23 07:14:25 +02:00 committed by Yangshun Tay
parent 2c74d93760
commit d14d3c2092

View file

@ -28,18 +28,18 @@ root-of-repo
│ ├── doc3.md
│ ├── exampledoc4.md
│ └── exampledoc5.md
── website
├── blog-examples-from-docusaurus
│ ├── 2016-03-11-blog-post.md
│ └── 2017-04-10-blog-post-two.md
├── core
│ └── Footer.js
├── node_modules
├── package.json
├── pages
├── sidebars.json
├── siteConfig.js
└── static
── website
├── blog-examples-from-docusaurus
│ ├── 2016-03-11-blog-post.md
│ └── 2017-04-10-blog-post-two.md
├── core
│ └── Footer.js
├── node_modules
├── package.json
├── pages
├── sidebars.json
├── siteConfig.js
└── static
```
Running the Docusaurus initialization script, `docusaurus-init`, produces a runnable, example website to base your site upon.
@ -51,3 +51,12 @@ Running the Docusaurus initialization script, `docusaurus-init`, produces a runn
1. Load the example site at http://localhost:3000. You should see the example site loaded in your web browser.
![](/img/getting-started-preparation-verify.png)
### Launching the server behind a proxy
If you are behind a corporate proxy, you need to disable it for the development server requests. It can be done using the `NO_PROXY` environment variable.
```sh
SET NO_PROXY=localhost
yarn start (or npm run start)
```