wrap https in checl

This commit is contained in:
Georges-Antoine Assi
2025-08-27 18:04:27 -04:00
parent d6ccceff59
commit f8e70fcd44

View File

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