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.
This commit is contained in:
parent
a87b9758a3
commit
7a98070af6
@ -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 = {
|
const devConfig = {
|
||||||
// API 基础地址(本地开发)
|
// API 基础地址(本地开发)
|
||||||
baseUrl: "http://127.0.0.1:3001",
|
baseUrl: "https://yingsa-server.ethan.team",
|
||||||
// WebSocket 地址(本地开发)
|
// WebSocket 地址(本地开发)
|
||||||
wsUrl: "ws://127.0.0.1:3001/ws",
|
wsUrl: "wss://yingsa-server.ethan.team/ws",
|
||||||
};
|
};
|
||||||
|
|
||||||
// 生产环境配置
|
// 生产环境配置
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user