From 4cdf93369a1ddfa290a25a99eba75c894dcb0d13 Mon Sep 17 00:00:00 2001 From: Naomi Jacobs Date: Wed, 1 Aug 2018 12:42:42 -0700 Subject: [PATCH] Add caveat for using http-proxy-middleware options --- src/content/configuration/dev-server.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/configuration/dev-server.md b/src/content/configuration/dev-server.md index b3edddb893ce..a7ff8d3017fd 100644 --- a/src/content/configuration/dev-server.md +++ b/src/content/configuration/dev-server.md @@ -730,7 +730,7 @@ webpack-dev-server --port 8080 Proxying some URLs can be useful when you have a separate API backend development server and you want to send API requests on the same domain. -The dev-server makes use of the powerful [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) package. Checkout its [documentation](https://github.com/chimurai/http-proxy-middleware#options) for more advanced usages. +The dev-server makes use of the powerful [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) package. Check out its [documentation](https://github.com/chimurai/http-proxy-middleware#options) for more advanced usages. Note that some of `http-proxy-middleware`'s features do not require a `target` key, e.g. its `router` feature, but you will still need to include a `target` key in your config here, otherwise `webpack-dev-server` won't pass it along to `http-proxy-middleware`). With a backend on `localhost:3000`, you can use this to enable proxying: