diff --git a/vite.config.ts b/vite.config.ts index b049e93..db04793 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -88,13 +88,15 @@ export default defineConfig(({ mode }) => { version(), ], server: { - https: { - // This config controls https for the *dev server*. - // See docs/dev-https.md for setting up https - key: serverHttpCertKey, - cert: serverHttpCertCrt, - passphrase: serverHttpCertPassword, - }, + https: serverHttpCertBase + ? { + // This config controls https for the *dev server*. + // See docs/dev-https.md for setting up https + key: serverHttpCertKey, + cert: serverHttpCertCrt, + passphrase: serverHttpCertPassword, + } + : undefined, }, define: { "import.meta.env.BUILT_AT": `"${new Date().toISOString()}"`,