11 lines
718 B
Bash
11 lines
718 B
Bash
# 开发环境 (dev):仅 vite dev 加载(--mode dev)。
|
||
# serviceHost 用同源前缀 /open-gateway,由 vite.config.ts 的 server.proxy 转发到 base 域,
|
||
# 避免跨源:网关无 CORS,且 10013 仅绑容器网内 127.0.0.1。
|
||
# 线上产物不读本文件(build 为 production mode),serviceHost 由 host.config.ts 同域推导
|
||
# (/open-gateway/front/ → 首段 open-gateway → ${origin}/open-gateway)。
|
||
VITE_SERVICE_HOST=/open-gateway
|
||
VITE_IS_MOCK=false
|
||
# 超管门槛(src/utils/superGate.ts):本地无平台 Cookie 时 CurrentUser 探测失败按放行处理;
|
||
# 如需完全旁路门槛,取消下一行注释(仅 dev 生效,build 不读本文件)。
|
||
# VITE_SUPER_GATE=off
|