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
I`m using Windows 10 and I had the same issue. I realized that you need to:
set HTTPS=true&&npm start
You can also put this code into your package.json file under the scripts section like this:
"scripts": {
"start": "set HTTPS=true&&react-scripts start",
(...)
}
Bonus: If you want to change the PORT use this command insted:
set HTTPS=true&&set PORT=443&&react-scripts start
Obs.: Pay attention to the blank spaces NOT left in between some characters.
You can browse this link for more detais.