Files
qncV4uni-app/.env
2026-05-22 16:28:50 +08:00

18 lines
971 B
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.

# API 基础地址控制
# ──────────────────────────────────────────────
# 方式1不设置 VITE_API_BASE_URL留空由代码自动选择
# H5 dev → /api/v1走 Vite proxy
# 小程序 dev → http://127.0.0.1:8888/api/v1直连本地
# 生产 → https://www.quannengcha.com/api/v1
#
# 方式2设置 VITE_API_BASE_URL 强制覆盖所有端
# 连线上VITE_API_BASE_URL=https://www.quannengcha.com/api/v1
# 连本地VITE_API_BASE_URL=http://127.0.0.1:8888/api/v1
# ──────────────────────────────────────────────
# 想用线上接口时取消下面这行注释:
VITE_API_BASE_URL=https://www.quannengcha.com/api/v1
# 想用本地接口时注释掉上面那行,取消下面这行注释:
# VITE_API_BASE_URL=http://127.0.0.1:8888/api/v1