create-react-app: how to use https instead of http?

后端 未结 19 1286
眼角桃花
眼角桃花 2020-12-24 10:04

I was wondering if anyone knows how to use https on dev for the \'create-react-app\' environment. I can\'t see anything about that in the README or quick googling. I just wa

19条回答
  •  感情败类
    2020-12-24 11:05

    "scripts": {
    "start": "set HTTPS=true&&set PORT=443&&react-scripts start",
    ........
    }
    

    In case you need to change the port and set it to https.

提交回复
热议问题