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: template/README.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ You can find the most recent version of this guide [here](https://github.com/fac
-[Integrating with a Node Backend](#integrating-with-a-node-backend)
26
26
-[Proxying API Requests in Development](#proxying-api-requests-in-development)
27
+
-[Using HTTPS in Development](#using-https-in-development)
27
28
-[Adding `<link>` and `<meta>` Tags](#adding-link-and-meta-tags)
28
29
-[Referring to Static Assets from `<link href>`](#referring-to-static-assets-from-link-href)
29
30
-[Generating Dynamic `<meta>` Tags on the Server](#generating-dynamic-meta-tags-on-the-server)
@@ -528,6 +529,30 @@ If the `proxy` option is **not** flexible enough for you, alternatively you can:
528
529
* Enable CORS on your server ([here’s how to do it for Express](http://enable-cors.org/server_expressjs.html)).
529
530
* Use [environment variables](#adding-custom-environment-variables) to inject the right server host and port into your app.
530
531
532
+
## Using HTTPS in Development
533
+
534
+
>Note: this feature is available with `[email protected]` and higher.
535
+
536
+
You may require the dev server to serve pages over HTTPS. One particular case where this could be useful is when using [the "proxy" feature](#proxying-api-requests-in-development) to proxy requests to an API server when that API server is itself serving HTTPS.
537
+
538
+
To do this, set the `HTTPS` environment variable to `true`, then start the dev server as usual with `npm start`:
539
+
540
+
#### Windows (cmd.exe)
541
+
542
+
```cmd
543
+
set HTTPS=true&&npm start
544
+
```
545
+
546
+
(Note: the lack of whitespace is intentional.)
547
+
548
+
#### Linux, OS X (Bash)
549
+
550
+
```bash
551
+
HTTPS=true npm start
552
+
```
553
+
554
+
Note that the server will use a self-signed certificate, so your web browser will almost definitely display a warning upon accessing the page.
555
+
531
556
## Adding `<link>` and `<meta>` Tags
532
557
533
558
You can edit the generated `index.html` and add any tags you’d like to it.
0 commit comments