|
@@ -5,6 +5,7 @@ |
|
@@ -5,6 +5,7 @@ |
5
|
* @date 2016/05/06
|
5
|
* @date 2016/05/06
|
6
|
*/
|
6
|
*/
|
7
|
|
7
|
|
|
|
8
|
+const pkg = require('../package.json');
|
8
|
|
9
|
|
9
|
const isProduction = process.env.NODE_ENV === 'production';
|
10
|
const isProduction = process.env.NODE_ENV === 'production';
|
10
|
const isTest = process.env.NODE_ENV === 'test';
|
11
|
const isTest = process.env.NODE_ENV === 'test';
|
|
@@ -111,7 +112,7 @@ module.exports = { |
|
@@ -111,7 +112,7 @@ module.exports = { |
111
|
if (isProduction) {
|
112
|
if (isProduction) {
|
112
|
Object.assign(module.exports, {
|
113
|
Object.assign(module.exports, {
|
113
|
appName: 'm.yohobuy.com',
|
114
|
appName: 'm.yohobuy.com',
|
114
|
- assetUrl: '//cdn.yoho.cn/m-yohobuy-node/assets/',
|
115
|
+ assetUrl: `//cdn.yoho.cn/m-yohobuy-node/${pkg.version}/assets/`,
|
115
|
domains: {
|
116
|
domains: {
|
116
|
api: 'http://api.yoho.yohoops.org/',
|
117
|
api: 'http://api.yoho.yohoops.org/',
|
117
|
service: 'http://service.yoho.yohoops.org/',
|
118
|
service: 'http://service.yoho.yohoops.org/',
|
|
@@ -159,7 +160,7 @@ if (isProduction) { |
|
@@ -159,7 +160,7 @@ if (isProduction) { |
159
|
} else if (isTest) {
|
160
|
} else if (isTest) {
|
160
|
Object.assign(module.exports, {
|
161
|
Object.assign(module.exports, {
|
161
|
appName: 'm.yohobuy.com for test',
|
162
|
appName: 'm.yohobuy.com for test',
|
162
|
- assetUrl: '//cdn.yoho.cn/m-yohobuy-node/assets/',
|
163
|
+ assetUrl: `//cdn.yoho.cn/m-yohobuy-node/${pkg.version}/assets/`,
|
163
|
domains: {
|
164
|
domains: {
|
164
|
api: process.env.TEST_API || 'http://api-test1.yohops.com:9999/',
|
165
|
api: process.env.TEST_API || 'http://api-test1.yohops.com:9999/',
|
165
|
service: process.env.TEST_SERVICE || 'http://service-test1.yohops.com:9999/',
|
166
|
service: process.env.TEST_SERVICE || 'http://service-test1.yohops.com:9999/',
|