Files
happy-life-star/mini-program/.env.development
T
peanut 2ed66d8500 fix(mini-program): 修复 WebSocket URL 配置,通过 Nginx 代理访问
将开发环境 WebSocket URL 从直接连接后端端口 19089 改为通过
Nginx 代理的 wss://lifescript.happylifeos.com/ws 路径。

原因:后端 19089 端口是 HTTP,不支持 WSS 连接。小程序通过
Nginx 的 /ws 代理路径访问,由 Nginx 处理 SSL 终止和 WebSocket
升级,再转发到后端 19089 端口。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-29 19:55:20 +08:00

6 lines
183 B
Bash

# 开发环境配置(本地开发调试)
VITE_APP_ENV=dev
VITE_API_BASE_URL=https://lifescript.happylifeos.com/api
VITE_WS_URL=wss://lifescript.happylifeos.com/ws
VITE_DEBUG=true