From da3867b8a872015b4d971dc713cdb403a4331d89 Mon Sep 17 00:00:00 2001 From: Livoras Date: Fri, 20 Jul 2018 16:09:51 +0800 Subject: [PATCH] Update proxy.md ``` We create a file next to our project's `package.json` called `proxy.conf.json` with the content ``` The `proxy.config.json` is along with the `package.json`, so it's in the root of the project instead of `src` --- docs/documentation/stories/proxy.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/documentation/stories/proxy.md b/docs/documentation/stories/proxy.md index c0cfd0e1cabc..20e442510019 100644 --- a/docs/documentation/stories/proxy.md +++ b/docs/documentation/stories/proxy.md @@ -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" }, ``` @@ -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`. \ No newline at end of file +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`.