Skip to content

Commit ab272d2

Browse files
banyaniansu
authored andcommitted
Fix documentation of http-proxy-middleware (facebook#5226)
1 parent 2b2d866 commit ab272d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/template/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ You can now register proxies as you wish! Here's an example using the above `htt
12111211
const proxy = require('http-proxy-middleware');
12121212

12131213
module.exports = function(app) {
1214-
app.use(proxy('/api', { target: 'http://localhost:5000/' }));
1214+
app.use('/api', proxy({ target: 'http://localhost:5000/' }));
12151215
};
12161216
```
12171217

0 commit comments

Comments
 (0)