...
|
...
|
@@ -5,6 +5,7 @@ |
|
|
* @date 2016/05/06
|
|
|
*/
|
|
|
|
|
|
const pkg = require('../package.json');
|
|
|
|
|
|
const isProduction = process.env.NODE_ENV === 'production';
|
|
|
const isTest = process.env.NODE_ENV === 'test';
|
...
|
...
|
@@ -111,7 +112,7 @@ module.exports = { |
|
|
if (isProduction) {
|
|
|
Object.assign(module.exports, {
|
|
|
appName: 'm.yohobuy.com',
|
|
|
assetUrl: '//cdn.yoho.cn/m-yohobuy-node/assets/',
|
|
|
assetUrl: `//cdn.yoho.cn/m-yohobuy-node/${pkg.vision}/assets/`,
|
|
|
domains: {
|
|
|
api: 'http://api.yoho.yohoops.org/',
|
|
|
service: 'http://service.yoho.yohoops.org/',
|
...
|
...
|
@@ -159,7 +160,7 @@ if (isProduction) { |
|
|
} else if (isTest) {
|
|
|
Object.assign(module.exports, {
|
|
|
appName: 'm.yohobuy.com for test',
|
|
|
assetUrl: '//cdn.yoho.cn/m-yohobuy-node/assets/',
|
|
|
assetUrl: `//cdn.yoho.cn/m-yohobuy-node/${pkg.vision}/assets/`,
|
|
|
domains: {
|
|
|
api: process.env.TEST_API || 'http://api-test1.yohops.com:9999/',
|
|
|
service: process.env.TEST_SERVICE || 'http://service-test1.yohops.com:9999/',
|
...
|
...
|
|