I am trying to run a yarn server with
$ yarn run start --https
which starts a server, but with http not https. The --https option works for another project that I was working on, but not this one. I was wondering if I need to set something in package.json as well to enable https. For reference, this is the github project that I cloned and am using: https://github.com/googlecreativelab/teachable-machine-boilerplate.
The boilerplate uses a development server budo, so yarn start essentially runs budo dist. You can still pass options to it.
budo has no https option, but it does have an --ssl option for this purpose.
yarn start --ssl
Explained on docs:
HTTPS=true npm start
or set it on scripts section of your package.json:
{
"start": "HTTPS=true react-scripts start"
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With