mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-28 09:25:42 +08:00
Fix documentation of http-proxy-middleware (#5226)
This commit is contained in:
committed by
Ian Sutherland
parent
2b2d8667f2
commit
ab272d25d5
@@ -1211,7 +1211,7 @@ You can now register proxies as you wish! Here's an example using the above `htt
|
||||
const proxy = require('http-proxy-middleware');
|
||||
|
||||
module.exports = function(app) {
|
||||
app.use(proxy('/api', { target: 'http://localhost:5000/' }));
|
||||
app.use('/api', proxy({ target: 'http://localhost:5000/' }));
|
||||
};
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user