From 7a98070af60a14da45c589d14556f018c7fc7ce1 Mon Sep 17 00:00:00 2001 From: ethanfly Date: Sun, 8 Feb 2026 08:44:22 +0800 Subject: [PATCH] fix(config): Update development environment URLs for API and WebSocket - Changed the API base URL and WebSocket URL in config.js to point to the production server instead of localhost for the development environment. - Ensured that the configuration reflects the correct endpoints for improved connectivity during development. --- miniprogram/config.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/miniprogram/config.js b/miniprogram/config.js index d9e41a6d..ed699800 100644 --- a/miniprogram/config.js +++ b/miniprogram/config.js @@ -3,12 +3,20 @@ * 请根据实际环境修改以下配置 */ +// // 开发环境配置 +// const devConfig = { +// // API 基础地址(本地开发) +// baseUrl: "http://127.0.0.1:3001", +// // WebSocket 地址(本地开发) +// wsUrl: "ws://127.0.0.1:3001/ws", +// }; + // 开发环境配置 const devConfig = { // API 基础地址(本地开发) - baseUrl: "http://127.0.0.1:3001", + baseUrl: "https://yingsa-server.ethan.team", // WebSocket 地址(本地开发) - wsUrl: "ws://127.0.0.1:3001/ws", + wsUrl: "wss://yingsa-server.ethan.team/ws", }; // 生产环境配置