mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-23 04:40:23 +08:00
Fix typo in 'Configuring the Proxy Manually' (#5193)
Replace `src/setupTests.js` with `src/setupProxy.js`.
This commit is contained in:
committed by
Joe Haddad
parent
2afcd4fdfc
commit
aa57262f7f
@@ -1118,7 +1118,7 @@ We don’t recommend this approach.
|
||||
|
||||
If the `proxy` option is **not** flexible enough for you, you can get direct access to the Express app instance and hook up your own proxy middleware.
|
||||
|
||||
You can use this feature in conjunction with the `proxy` property in `package.json`, but it is recommended you consolidate all of your logic into `src/setupTests.js`.
|
||||
You can use this feature in conjunction with the `proxy` property in `package.json`, but it is recommended you consolidate all of your logic into `src/setupProxy.js`.
|
||||
|
||||
First, install `http-proxy-middleware` using npm or Yarn:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user