Files
qncV4uni-app/.env
2026-05-16 15:47:07 +08:00

10 lines
424 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.

# 客户端可读变量必须以 VITE_ 开头
# 不配置 VITE_API_BASE_URL 时,逻辑在 src/api/http.js 的 resolveBaseUrl()
# - H5默认 /api/v1配合 vite.config.js 里 proxy
# - 非 H5默认 https://www.tianyuancha.cn/api/v1
#
# 需要覆盖时再取消注释其一:
# VITE_API_BASE_URL=/api/v1
VITE_API_BASE_URL=http://127.0.0.1:8888/api/v1
# VITE_API_BASE_URL=https://www.tianyuancha.cn/api/v1