Files
Docker/uniapp/youjiala/.env
T
2026-10-13 10:47:39 +08:00

25 lines
1.3 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ============================================================================
# 全站共享的环境变量:Vite 先读 .env,再由 .env.[mode] 覆盖同名项
#
# 这里只放「换环境要动、换设备不用动」的后端根地址;品牌文案(Title/Copy/Beian)
# 仍然留在 src/policy/custom/webSitePolicy.ts 的常量里,不进 .env。
#
# mode 由 uni 命令决定:
# uni / uni -p mp-weixin / uni -p app => development => .env + .env.development
# uni build / uni build -p xxx => production => .env + .env.production
# 读取方:src/policy/custom/webSitePolicy.ts(变量缺失时回落到文件内的默认常量)
# 类型声明:src/types/env.d.ts
#
# 前端产物人人可读,本文件禁止出现任何密钥或凭据。
# 个人机器差异请写 .env.local / .env.development.local(已被 .gitignore 的 *.local 忽略)。
# ============================================================================
# 发布构建使用的后端根地址(生产 / UAT 部署)
VITE_WEB_API_ROOT=https://uat.youjiala.com
# 开发构建使用的后端根地址(H5 联调,默认连宿主机本地后端)
VITE_WEB_API_ROOT_DEV=http://localhost:5235
# App 端开发构建使用的后端根地址:真机与模拟器上没有宿主机 localhost,改连局域网或 UAT
VITE_WEB_API_ROOT_DEV_APP=https://uat.youjiala.com