...
|
...
|
@@ -12,7 +12,7 @@ const {createBundleRenderer} = require('vue-server-renderer'); |
|
|
const logger = global.yoho.logger;
|
|
|
const config = global.yoho.config;
|
|
|
|
|
|
const isProd = process.env.NODE_ENV === 'production';
|
|
|
const isProd = true || process.env.NODE_ENV === 'production';
|
|
|
const isDev = process.env.NODE_ENV === 'development' || !process.env.NODE_ENV;
|
|
|
|
|
|
let renderer;
|
...
|
...
|
@@ -40,14 +40,16 @@ const getContext = (req) => { |
|
|
title: '',
|
|
|
user: req.user,
|
|
|
env: {
|
|
|
udid: req.yoho.udid,
|
|
|
isApp: req.yoho.isApp,
|
|
|
isiOS: req.yoho.isiOS,
|
|
|
isAndroid: req.yoho.isAndroid,
|
|
|
isYohoApp: req.yoho.isYohoApp,
|
|
|
clientIp: req.yoho.clientIp,
|
|
|
version: pkg.version,
|
|
|
version: req.query.app_version || pkg.version,
|
|
|
osVersion: req.query.os_version || '',
|
|
|
buildId: req.app.locals.buildId,
|
|
|
visitId: md5(`${req.query.udid}_${new Date().getTime()}`)
|
|
|
visitId: md5(`${req.yoho.udid}_${new Date().getTime()}`)
|
|
|
},
|
|
|
ua: req.get('user-agent'),
|
|
|
hostname: os.hostname(),
|
...
|
...
|
|