JiangShan-app/env.config.js
2025-05-22 16:23:08 +08:00

45 lines
1.1 KiB
JavaScript
Raw Permalink 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.

// H5端开发和生产环境协议
let protocalDev = "wss://";
let protocalProd = "wss://";
// 条件编译微信端和移动端使用wxs协议
// #ifdef MP-WEIXIN || APP-PLUS
protocalDev = 'wxs://';
protocalProd = 'wxs://';
// #endif
// 腾讯地图key
let qqmapKey = '4PDBZ-4KQKU-AX6VO-GU7NB-INDZJ-YBFXC';
// 心知天气key
let xinzhiKey = 'SBh45_yy21FU5ErV_';
const CONFIG = {
// 开发环境配置
development: {
officialWebUrl: 'https://iot-xcwl.cn/',
baseUrl: 'https://iot-xcwl.cn/prod-api/',
mqttServer: protocalProd + 'iot-xcwl.cn/mqtt',
decoderUrl: 'https://iot-xcwl.cn/',
qqmapKey,
xinzhiKey,
},
// 生产环境配置
production: {
officialWebUrl: 'https://js.xcwl-aiot.cn/',
baseUrl: 'https://js.xcwl-aiot.cn/prod-api/',
mqttServer: protocalDev + 'js.xcwl-aiot.cn/mqtt',
decoderUrl: 'https://js.xcwl-aiot.cn/',
qqmapKey,
xinzhiKey,
// officialWebUrl: 'https://fastbee.cn/',
// baseUrl: 'https://iot.fastbee.cn/prod-api/',
// mqttServer: protocalProd + 'iot.fastbee.cn/mqtt',
// decoderUrl: 'https://iot.fastbee.cn/',
// qqmapKey,
// xinzhiKey,
}
}
export default CONFIG[process.env.NODE_ENV];