Skip to content

Commit

Permalink
Update notes about advanced proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Oct 1, 2018
1 parent b5bae25 commit df98c0c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/react-scripts/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,8 @@ 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`.

First, install `http-proxy-middleware` using npm or Yarn:

```bash
Expand Down Expand Up @@ -1146,6 +1148,10 @@ module.exports = function(app) {
};
```

> **Note:** You do not need to import this file anywhere. It is automatically registered when you start the development server.
> **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).
## Using HTTPS in Development

> Note: this feature is available with `[email protected]` and higher.
Expand Down

0 comments on commit df98c0c

Please sign in to comment.