fix: 修复vite配置https无效问题

This commit is contained in:
harrywan 2024-11-12 11:14:53 +08:00
parent 616de07763
commit fb5caa61bc

View File

@ -25,7 +25,7 @@ export default async (api, args) => {
args: {},
});
const isHTTPS = !!(process.env.HTTPS || args.https);
const isHTTPS = !!(process.env.HTTPS || args.https || api.config.viteOption.server?.https);
const bundleConfig = deepmerge(getInnerCommonConfig(api), {
mode: 'development',