Skip to content

Commit

Permalink
add info for proxy-support blitz-js/blitz#2264 (#454)
Browse files Browse the repository at this point in the history
Co-authored-by: Brandon Bayer <[email protected]>
  • Loading branch information
mubaidr and flybayer authored Apr 27, 2021
1 parent 2f576f6 commit d21543d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions app/pages/docs/blitz-config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ module.exports = {
## CLI {#cli}
### Clear Console On Blitz Dev {#clear-console-on-blitz-dev}
When you run `blitz dev`, the console gets cleared. You can disable it by
setting the `cli.clearConsoleOnBlitzDev` to `false`:
Expand All @@ -140,6 +142,23 @@ module.exports = {
}
```
### Proxy support {#proxy-support}
Proxy support is enabled automatically for recipe install if either `http_proxy` or `https_proxy`
environment variable is present. You can also set proxy using:
```js
module.exports = {
cli: {
httpProxy: "http://127.0.0.1:8080",
httpsProxy: "http://127.0.0.1:8080",
noProxy: "localhost",
},
}
```
Please note that proxy configuration in `blitz.config.js` will override environment proxy configuration.
## CDN Support with Asset Prefix {#cdn-support-with-asset-prefix}
To set up a [CDN](https://en.wikipedia.org/wiki/Content_delivery_network),
Expand Down
2 changes: 1 addition & 1 deletion app/pages/docs/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ You need Node.js 12 or newer

### Install Blitz {#install-blitz}

Run `npm install -g blitz`
Run `yarn global add blitz` or `npm install -g blitz --legacy-peer-deps` (legacy-peer-deps is needed because npm totally change behavior of peer deps and some dependencies haven't caught up)

### Create a New App {#create-a-new-app}

Expand Down

0 comments on commit d21543d

Please sign in to comment.