mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-01 07:49:43 +02:00
* 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:
parent
2c74d93760
commit
d14d3c2092
1 changed files with 21 additions and 12 deletions
|
@ -28,18 +28,18 @@ root-of-repo
|
||||||
│ ├── doc3.md
|
│ ├── doc3.md
|
||||||
│ ├── exampledoc4.md
|
│ ├── exampledoc4.md
|
||||||
│ └── exampledoc5.md
|
│ └── exampledoc5.md
|
||||||
├── website
|
└── website
|
||||||
│ ├── blog-examples-from-docusaurus
|
├── blog-examples-from-docusaurus
|
||||||
│ │ ├── 2016-03-11-blog-post.md
|
│ ├── 2016-03-11-blog-post.md
|
||||||
│ │ └── 2017-04-10-blog-post-two.md
|
│ └── 2017-04-10-blog-post-two.md
|
||||||
│ ├── core
|
├── core
|
||||||
│ │ └── Footer.js
|
│ └── Footer.js
|
||||||
│ ├── node_modules
|
├── node_modules
|
||||||
│ ├── package.json
|
├── package.json
|
||||||
│ ├── pages
|
├── pages
|
||||||
│ ├── sidebars.json
|
├── sidebars.json
|
||||||
│ ├── siteConfig.js
|
├── siteConfig.js
|
||||||
│ └── static
|
└── static
|
||||||
```
|
```
|
||||||
|
|
||||||
Running the Docusaurus initialization script, `docusaurus-init`, produces a runnable, example website to base your site upon.
|
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.
|
1. Load the example site at http://localhost:3000. You should see the example site loaded in your web browser.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
### 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)
|
||||||
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue