preact-cli
preact-cli copied to clipboard
How to reset devcert when upgrading from v2 to v3?
Do you want to request a feature or report a bug? Probably not a bug, more a local problem at my side?
What is the current behaviour?
I am trying to upgrade a preact-cli 2.1.1 to ^3.0.0-rc.10.
I updated the dependency and ran cross-env NODE_ENV=dev HTTPS=true preact watch
Result: I get the following warning:
âš WARN Reverting to webpack-dev-server internal certificate.
My current cert that was created with preact-cli does not seem to get picked up. How can I tell preact-cli to create a new one?
What is the expected behaviour? I can run the dev server with a cert and https.
Please paste the results of preact info here.
Environment Info:
System:
OS: macOS 10.15.4
CPU: (4) x64 Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz
Binaries:
Node: 10.18.1 - /var/folders/nd/1zzdwfd93sn21xsmmcmhhf000000gp/T/yarn--1589535458347-0.6402751317764506/node
Yarn: 1.22.4 - /var/folders/nd/1zzdwfd93sn21xsmmcmhhf000000gp/T/yarn--1589535458347-0.6402751317764506/yarn
npm: 6.13.4 - ~/.nvm/versions/node/v10.18.1/bin/npm
Browsers:
Chrome: 81.0.4044.138
Firefox: 76.0.1
Safari: 13.1
npmPackages:
preact: ^8.4.2 => 8.4.2
preact-cli: ^3.0.0-rc.10 => 3.0.0-rc.10
preact-compat: ^3.18.4 => 3.18.5
✨ Done in 3.08s.
I don't think Preact CLI version 3 includes HTTPS support?