disable no-ssr
This commit is contained in:
parent
88764c29aa
commit
16da8709a7
|
@ -14,8 +14,8 @@ const isBrowser = (userAgent) => {
|
|||
}
|
||||
|
||||
export default function(req, res, next) {
|
||||
if (process.env.NODE_ENV === 'production' && !req.url.startsWith('/card/@')) {
|
||||
res.spa = isBrowser(req.headers['user-agent']) || isHighLoadTime(process.env.LOCALE);
|
||||
}
|
||||
//if (process.env.NODE_ENV === 'production' && !req.url.startsWith('/card/@')) {
|
||||
// res.spa = isBrowser(req.headers['user-agent']) || isHighLoadTime(process.env.LOCALE);
|
||||
//}
|
||||
next();
|
||||
}
|
||||
|
|
Reference in New Issue