From fef29e7b0a8de429af5b4b8ece7c61cd593257fa Mon Sep 17 00:00:00 2001 From: Peanut Date: Wed, 18 Mar 2026 20:38:33 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E6=A1=A3=E8=AF=B4=E6=98=8E=EF=BC=88?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E4=BD=BF=E7=94=A8=E5=9F=9F=E5=90=8D=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mini-program/README.md | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/mini-program/README.md b/mini-program/README.md index 2f1e6f1..3dfc3d7 100644 --- a/mini-program/README.md +++ b/mini-program/README.md @@ -95,33 +95,36 @@ pnpm build:h5 项目使用 `.env` 文件管理环境变量: -| 文件 | 说明 | 用途 | -|------|------|------| -| `.env.development` | 开发环境配置 | 本地开发调试,指向 localhost | -| `.env.test` | 测试环境配置 | 小程序体验版,指向服务器 API | -| `.env.production` | 生产环境配置 | 小程序正式版,指向服务器 API | +| 文件 | 说明 | API 地址 | WebSocket 地址 | +|------|------|----------|----------------| +| `.env.development` | 开发环境配置 | https://lifescript.happylifeos.com/api | wss://lifescript.happylifeos.com/ws | +| `.env.test` | 测试环境配置 | https://lifescript.happylifeos.com/api | wss://lifescript.happylifeos.com/ws | +| `.env.production` | 生产环境配置 | https://lifescript.happylifeos.com/api | wss://lifescript.happylifeos.com/ws | **开发环境配置**(`.env.development`): ```bash +# 开发环境配置(本地开发调试) VITE_APP_ENV=dev -VITE_API_BASE_URL=http://localhost:19089/api -VITE_WS_URL=ws://localhost:19089 +VITE_API_BASE_URL=https://lifescript.happylifeos.com/api +VITE_WS_URL=wss://lifescript.happylifeos.com/ws VITE_DEBUG=true ``` **测试环境配置**(`.env.test`): ```bash +# 测试环境配置(小程序体验版) VITE_APP_ENV=test -VITE_API_BASE_URL=http://101.200.208.45:19089/api -VITE_WS_URL=ws://101.200.208.45:19089 +VITE_API_BASE_URL=https://lifescript.happylifeos.com/api +VITE_WS_URL=wss://lifescript.happylifeos.com/ws VITE_DEBUG=true ``` **生产环境配置**(`.env.production`): ```bash +# 生产环境配置(小程序正式版) VITE_APP_ENV=prod -VITE_API_BASE_URL=http://101.200.208.45:19089/api -VITE_WS_URL=ws://101.200.208.45:19089 +VITE_API_BASE_URL=https://lifescript.happylifeos.com/api +VITE_WS_URL=wss://lifescript.happylifeos.com/ws VITE_DEBUG=false ```