web-africa-h5/config.js

34 lines
779 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.

var app_url = 'http://f.hzs413.com';
var yxyapi = 'https://yxy.hzs413.com';
var ossapi = 'https://dny-test.s3.ap-southeast-1.amazonaws.com';
var ossurl = '/online/language/';
// 如果是本地测试环境
if (process.env.NODE_ENV === 'development') {
//#ifdef H5
app_url = '/api';
yxyapi = '/dev-api';
ossapi = '/oss-api';
ossurl = '/online/language/';
//#endif
}
// 如果是生产环境h5环境下直接读取url
// if (process.env.NODE_ENV === 'production') {
// //#ifdef H5
// app_url = 'http://f.hzs413.com';
// yxyapi = 'https://yxy.hzs413.com';
// ossapi = 'https://hzs-in.oss-cn-beijing.aliyuncs.com';
// //#endif
// }
export default {
/*服务器地址*/
app_url,
yxyapi,
ossapi,
ossurl,
/*appid*/
app_id: 10001,
//h5发布路径
h5_addr: '',
}