Search code examples
node.jsnpmyarnpkgdeeplearn.jstensorflow.js

How do I add https to yarn run?


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.


Solution

  • 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