mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-04 04:49:48 +08:00
!244 chore: 修改HOST为空情况下 执行build 报错
Merge pull request !244 from a20070322/dev
This commit is contained in:
commit
b15b2fb795
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user