!244 chore: 修改HOST为空情况下 执行build 报错

Merge pull request !244 from a20070322/dev
This commit is contained in:
蒋小小 2024-05-06 07:26:12 +00:00 committed by Gitee
commit b15b2fb795
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -26,7 +26,7 @@ import postcss from 'postcss'
export default defineConfig(({ mode }: ConfigEnv) => {
// 加载环境配置
const env: Record<string, string> = loadEnv(mode, __dirname, 'JPOM')
const { JPOM_PROXY_HOST: HOST, JPOM_BASE_URL, JPOM_PORT }: Record<string, string> = env
const { JPOM_PROXY_HOST: HOST = '', JPOM_BASE_URL = '', JPOM_PORT = '' }: Record<string, string> = env
console.log(env, `当前为${mode}环境`)
return {