Skip to content

Commit 41c1978

Browse files
robertpanzerTimer
authored andcommitted
Correct manual proxy documentation (facebook#3185)
Correct manual proxy documentation
1 parent 96b97d2 commit 41c1978

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

template/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ You may also specify any configuration value [`http-proxy-middleware`](https://g
10491049
All requests matching this path will be proxies, no exceptions. This includes requests for `text/html`, which the standard `proxy` option does not proxy.
10501050

10511051
If you need to specify multiple proxies, you may do so by specifying additional entries.
1052-
You may also narrow down matches using `*` and/or `**`, to match the path exactly or any subpath.
1052+
Matches are regular expressions, so that you can use a regexp to match multiple paths.
10531053
```js
10541054
{
10551055
// ...
@@ -1070,12 +1070,12 @@ You may also narrow down matches using `*` and/or `**`, to match the path exactl
10701070
// ...
10711071
},
10721072
// Matches /bar/abc.html but not /bar/sub/def.html
1073-
"/bar/*.html": {
1073+
"/bar/[^/]*[.]html": {
10741074
"target": "<url_3>",
10751075
// ...
10761076
},
10771077
// Matches /baz/abc.html and /baz/sub/def.html
1078-
"/baz/**/*.html": {
1078+
"/baz/.*/.*[.]html": {
10791079
"target": "<url_4>"
10801080
// ...
10811081
}

0 commit comments

Comments
 (0)