docs: clarify instructions on where to create the proxy.conf.json file (#33244)
PR Close #33244
This commit is contained in:
parent
a0d16dcfea
commit
01d3599f32
|
@ -328,7 +328,7 @@ For more information, see [Autoprefixer documentation](https://autoprefixer.gith
|
||||||
You can use the [proxying support](https://webpack.js.org/configuration/dev-server/#devserver-proxy) in the `webpack` dev server to divert certain URLs to a backend server, by passing a file to the `--proxy-config` build option.
|
You can use the [proxying support](https://webpack.js.org/configuration/dev-server/#devserver-proxy) in the `webpack` dev server to divert certain URLs to a backend server, by passing a file to the `--proxy-config` build option.
|
||||||
For example, to divert all calls for `http://localhost:4200/api` to a server running on `http://localhost:3000/api`, take the following steps.
|
For example, to divert all calls for `http://localhost:4200/api` to a server running on `http://localhost:3000/api`, take the following steps.
|
||||||
|
|
||||||
1. Create a file `proxy.conf.json` in the projects `src/` folder, in the same directory as `package.json`.
|
1. Create a file `proxy.conf.json` in your project's `src/` folder.
|
||||||
|
|
||||||
1. Add the following content to the new proxy file:
|
1. Add the following content to the new proxy file:
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue