problems with dev server using https - not using specified certs, and vite wss:// failing #16042
-
Two (related?) problems: 1 Need to have 'quasar dev' running in https mode with vite to use specific certs (which are trusted on my dev machine)I attempted to follow the instructions in the docs but only found example/explanation for CLI/webpack and nothing for CLI/vite. CLI/webpack doc page shows
so I tried
If I omit the 'https: true' (as in the CLI/webpack example) then the dev server doesn't listen with https.
... so it appears that the QuasarCLI is (has) generated a 'dummy' cert, which is expected if it isn't understanding that there is a specific cert to use. How do I properly instruct QuasarCLI to use my specific cert? 2. On refresh or HMR vite failsInitial page load works (after accepting browser warning about cert), but any HMR or manual refresh sends the app into a loop that logs
at infinitum. I'm assuming this too has something to do with the dev server being https and/or the cert is invalid. Any assistance, RTFM etc., greatly appreciated. Environment details
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The section for vite is https://quasar.dev/quasar-cli-vite/developing-pwa/handling-service-worker#ssl-certificate |
Beta Was this translation helpful? Give feedback.
-
Hi, how can I make quasar build -m ssr run with SSL? I achieved only with quasar dev -m ssr based on the (https://quasar.dev/quasar-cli-vite/developing-pwa/handling-service-worker#ssl-certificate) and (https://quasar.dev/quasar-cli-webpack/quasar-config-file#property-devserver) documentation |
Beta Was this translation helpful? Give feedback.
The section for vite is https://quasar.dev/quasar-cli-vite/developing-pwa/handling-service-worker#ssl-certificate