mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 18:43:42 +08:00
docs: update proxy.md with correct path
This commit is contained in:
parent
8caeb47824
commit
6afa6a31bb
@ -26,7 +26,7 @@ We can then add the `proxyConfig` option to the serve target:
|
||||
"builder": "@angular-devkit/build-angular:dev-server",
|
||||
"options": {
|
||||
"browserTarget": "your-application-name:build",
|
||||
"proxyConfig": "src/proxy.conf.json"
|
||||
"proxyConfig": "proxy.conf.json"
|
||||
},
|
||||
```
|
||||
|
||||
@ -119,7 +119,7 @@ Make sure to point to the right file (`.js` instead of `.json`):
|
||||
"builder": "@angular-devkit/build-angular:dev-server",
|
||||
"options": {
|
||||
"browserTarget": "your-application-name:build",
|
||||
"proxyConfig": "src/proxy.conf.js"
|
||||
"proxyConfig": "proxy.conf.js"
|
||||
},
|
||||
```
|
||||
|
||||
@ -183,4 +183,4 @@ function setupForCorporateProxy(proxyConfig) {
|
||||
module.exports = setupForCorporateProxy(proxyConfig);
|
||||
```
|
||||
|
||||
This way if you have a `http_proxy` or `HTTP_PROXY` environment variable defined, an agent will automatically be added to pass calls through your corporate proxy when running `npm start`.
|
||||
This way if you have a `http_proxy` or `HTTP_PROXY` environment variable defined, an agent will automatically be added to pass calls through your corporate proxy when running `npm start`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user