We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc4d62d commit ab41c4cCopy full SHA for ab41c4c
docusaurus/docs/using-https-in-development.md
@@ -31,3 +31,14 @@ HTTPS=true npm start
31
```
32
33
Note that the server will use a self-signed certificate, so your web browser will almost definitely display a warning upon accessing the page.
34
+
35
+To avoid having to set the environment variable each time, you can either include in the `npm start` script like so:
36
37
+```json
38
+{
39
+ "start": "HTTPS=true react-scripts start"
40
+}
41
+```
42
43
+Or you can create a `.env` file with `HTTPS=true` set.
44
+[Learn more about environment variables in CRA](https://create-react-app.dev/docs/adding-custom-environment-variables).
0 commit comments