...
|
...
|
@@ -27,6 +27,7 @@ const domains = { |
|
|
module.exports = {
|
|
|
app: 'h5',
|
|
|
appVersion: '6.2.3', // 调用api的版本
|
|
|
appName: 'yohobuywap-node',
|
|
|
port: 6001,
|
|
|
siteUrl: '//m.yohobuy.com',
|
|
|
assetUrl: '//127.0.0.1:5001',
|
...
|
...
|
@@ -133,7 +134,6 @@ module.exports = { |
|
|
|
|
|
if (isProduction) {
|
|
|
Object.assign(module.exports, {
|
|
|
appName: 'm.yohobuy.com',
|
|
|
assetUrl: `//cdn.yoho.cn/yohobuywap-node/${pkg.version}/`,
|
|
|
domains: {
|
|
|
api: 'http://api.yoho.yohoops.org/',
|
...
|
...
|
@@ -220,7 +220,6 @@ if (isProduction) { |
|
|
});
|
|
|
} else if (isTest) {
|
|
|
Object.assign(module.exports, {
|
|
|
appName: 'm.yohobuy.com for test',
|
|
|
assetUrl: `//cdn.yoho.cn/yohobuywap-node/${pkg.version}/`,
|
|
|
domains: {
|
|
|
api: process.env.TEST_API || 'http://api-test1.yohops.com:9999/',
|
...
|
...
|
|