searchApi.js
636 Bytes
/**
* 获取环境信息
* @type String
*/
var env = process.env.NODE_ENV || 'development';
var util = require('../util/common');
/**
* 外系统依赖配置
* @type Object
*/
var config = {
'development': {
yohoSearch: 'http://192.168.102.216:8080/yohosearch',
},
'test': {
// yohoSearch: 'http://192.168.102.216:8080/yohosearch',
yohoSearch: 'http://10.66.100.4:8080/yohosearch',
},
'preview': {
yohoSearch: 'http://192.168.102.216:8087/yohosearch',
},
'production': {
yohoSearch: 'http://search.yohoops.org/yohosearch',
}
};
module.exports = config[env];