fastbee/yack-mini/miniprogram/env.config.js
2026-09-28 09:01:38 +08:00

22 lines
545 B
JavaScript
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.

/**
* 环境配置
* yack 平台 API 和 MQTT 服务地址
*/
// 开发环境
const DEV_CONFIG = {
baseUrl: 'http://192.168.110.117:8080',
// 使用阿里云 EMQX 的非加密 WebSocket 端口
mqttServer: 'ws://47.121.180.229:8083/mqtt',
};
// 生产环境
const PROD_CONFIG = {
baseUrl: 'https://ycdat.cn/prod-api',
mqttServer: 'wss://ycdat.cn/mqtt',
};
// 当前环境:development wxede2cc5d39b2c6ea | production wx8bcff4708d1f6d2b
const ENV = 'production';
module.exports = ENV === 'development' ? DEV_CONFIG : PROD_CONFIG;