fastbee/yack-mini/miniprogram/env.config.js

21 lines
454 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',
mqttServer: 'wxs://192.168.110.117:8084/mqtt',
};
// 生产环境
const PROD_CONFIG = {
baseUrl: 'https://ycdat.cn/prod-api',
mqttServer: 'wxs://ycdat.cn/mqtt',
};
// 当前环境:development | production
const ENV = 'development';
module.exports = ENV === 'development' ? DEV_CONFIG : PROD_CONFIG;