You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/documentation/stories/proxy.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Proxy To Backend
2
2
3
-
Using the [proxying support](https://webpack.github.io/docs/webpack-dev-server.html#proxy) in webpack's dev server we can highjack certain URLs and send them to a backend server.
3
+
Using the [proxying support](https://webpack.js.org/configuration/dev-server/#devserver-proxy) in webpack's dev server we can highjack certain URLs and send them to a backend server.
4
4
We do this by passing a file to `--proxy-config`
5
5
6
6
Say we have a server running on `http://localhost:3000/api` and we want all calls to `http://localhost:4200/api` to go to that server.
@@ -16,7 +16,7 @@ We create a file next to our project's `package.json` called `proxy.conf.json` w
16
16
}
17
17
```
18
18
19
-
You can read more about what options are available [here](https://webpack.github.io/docs/webpack-dev-server.html#proxy).
19
+
You can read more about what options are available [here](https://webpack.js.org/configuration/dev-server/#devserver-proxy).
20
20
21
21
We can then edit the `package.json` file's start script to be
0 commit comments