diff --git a/vite.config.ts b/vite.config.ts index d1ad957f..6b54e183 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -25,6 +25,8 @@ export default ({ command, mode }: ConfigEnv): UserConfig => { root: root, // 服务端渲染 server: { + // 是否开启 https + https: false, // 端口号 port: env.VITE_PORT, host: "0.0.0.0",