暂时取消 https 加速方案,主要考虑 server 端没有 https

This commit is contained in:
YunaiV
2023-03-07 19:21:39 +08:00
parent 6cf76691a1
commit 7f336bbe92
2 changed files with 3 additions and 10 deletions

View File

@ -25,13 +25,11 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
root: root,
// 服务端渲染
server: {
// 是否开启 https
https: true,
// 端口号
port: env.VITE_PORT,
host: "0.0.0.0",
open: env.VITE_OPEN === 'true',
// 本地跨域代理
// 本地跨域代理. 目前注释的原因暂时没有用途server 端已经支持跨域
// proxy: {
// ['/admin-api']: {
// target: env.VITE_BASE_URL,