From aa57262f7f03fd3330aa78d5547e843a35fadee9 Mon Sep 17 00:00:00 2001 From: Fabrizio Cucci Date: Mon, 1 Oct 2018 12:11:35 +0100 Subject: [PATCH] Fix typo in 'Configuring the Proxy Manually' (#5193) Replace `src/setupTests.js` with `src/setupProxy.js`. --- packages/react-scripts/template/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 9d5f332dff3..3d193a0e7a3 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -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: