From f8e70fcd448920455fbbaebf9b0461b7ecb1a79d Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Wed, 27 Aug 2025 18:04:27 -0400 Subject: [PATCH] wrap https in checl --- frontend/vite.config.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/vite.config.js b/frontend/vite.config.js index eddc5a6a5..26132b313 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -82,9 +82,14 @@ export default defineConfig(({ mode }) => { }, port: env.DEV_HTTPS ? 443 : 3000, allowedHosts: ["localhost", "127.0.0.1", "romm.dev"], - https: { - cert: "/app/.vite-plugin-mkcert/dev.pem", - }, + ...(env.DEV_HTTPS + ? { + https: { + cert: "/app/.vite-plugin-mkcert/dev.pem", + key: "/app/.vite-plugin-mkcert/dev-key.pem", + }, + } + : {}), }, }; });