lukeed / pwa

(WIP) Universal PWA Builder
https://pwa.cafe
3.13k stars 100 forks source link

Watch: `--https` flag overrides custom config #26

Closed tuananh closed 6 years ago

tuananh commented 6 years ago

i have this line in pwa.config.js

config.devServer.https = true

however, when i browse to https://localhost:8080 it shows ERR_SSL_PROTOCOL_ERROR

Do you have any idea why it happens? should i bring this to webpack devserver repo instead?

lukeed commented 6 years ago

Hey, this would be a WDS error, if anything. Although it sounds like your system is rejecting the certificate they're adding for you.

I'm sure they have docs/FAQ for that somewhere! You could also provide custom key and cert values, even if you just generate them quickly with openssl.

Closing as this isn't PWA related, but lemme know if you find the answer!

tuananh commented 6 years ago

i found pwa watch --https working for me.

lukeed commented 6 years ago

Oh, interesting. The --https flag does the same thing you did

lukeed commented 6 years ago

Ah, I think I see what's happening.

Thanks!