Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct manual proxy documentation #3185

Merged
merged 1 commit into from
Sep 29, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/react-scripts/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ You may also specify any configuration value [`http-proxy-middleware`](https://g
All requests matching this path will be proxies, no exceptions. This includes requests for `text/html`, which the standard `proxy` option does not proxy.

If you need to specify multiple proxies, you may do so by specifying additional entries.
You may also narrow down matches using `*` and/or `**`, to match the path exactly or any subpath.
Matches are regular expressions, so that you can use a regexp to match multiple paths.
```js
{
// ...
Expand All @@ -1070,12 +1070,12 @@ You may also narrow down matches using `*` and/or `**`, to match the path exactl
// ...
},
// Matches /bar/abc.html but not /bar/sub/def.html
"/bar/*.html": {
"/bar/[^/]*[.]html": {
"target": "<url_3>",
// ...
},
// Matches /baz/abc.html and /baz/sub/def.html
"/baz/**/*.html": {
"/baz/.*/.*[.]html": {
"target": "<url_4>"
// ...
}
Expand Down