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", + }, + } + : {}), }, }; });