FastBee/APP/env.config.js
2025-07-07 09:21:15 +08:00

40 lines
945 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.

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