You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/react-scripts/template/README.md
+6
Original file line number
Diff line number
Diff line change
@@ -1118,6 +1118,8 @@ We don’t recommend this approach.
1118
1118
1119
1119
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.
1120
1120
1121
+
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`.
1122
+
1121
1123
First, install `http-proxy-middleware` using npm or Yarn:
> **Note:** You do not need to import this file anywhere. It is automatically registered when you start the development server.
1152
+
1153
+
> **Note:** This file only supports Node's JavaScript syntax. Be sure to only use supported language features (i.e. no support for Flow, ES Modules, etc).
1154
+
1149
1155
## Using HTTPS in Development
1150
1156
1151
1157
> Note: this feature is available with `react-scripts@0.4.0` and higher.
0 commit comments