const debug = false // true 是连地服务端本地，false 是连接线上

const development = {
    DOMAIN: 'http://192.168.1.60:8094',
    MQTT_OPTIONS: {
        clientId: '',
        connectTimeout: 15000,
        username: 'admin',
        password: 'admin',
    }
}

const production = {
    DOMAIN: 'http://192.168.1.60:8094',
    MQTT_OPTIONS: {
        clientId: '',
        connectTimeout: 15000,
        username: 'admin',
        password: 'admin',
    }
}

const config = debug ? development : production

// #ifdef H5
if (process.env.NODE_ENV === 'development') {
    config.DOMAIN = '/api'
} else {
    config.DOMAIN = window.location.origin
}
// #endif

export default config
