topfans/frontend/.env.production
2026-06-15 22:33:37 +08:00

12 lines
605 B
Plaintext
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.

# 生产环境配置
# HBuilderX「发行」时自动加载;CLI 用 --mode production
VITE_API_BASE_URL=https://api.topfans.online
# WebSocket 地址:生产环境使用 wss与 HTTPS 对应),如 WS 部署在独立端口/域名可覆盖
# 走 Nginx 反向代理时建议改为同源 wss://api.topfans.online由 Nginx 转发到后端 ws://gateway:8080
# VITE_WS_BASE_URL=wss://api.topfans.online
VITE_WS_BASE_URL=ws://101.132.250.62:8080
# WebSocket 路径:与后端 backend/.env 的 WS_AI_CHAT_PATH 保持一致
VITE_WS_AI_CHAT_PATH=/ai-chat
VITE_USE_MOCK_API=false
# VITE_ENV_NAME=production