disable no-ssr

This commit is contained in:
Avris 2022-02-09 08:45:14 +00:00
parent 88764c29aa
commit 16da8709a7
1 changed files with 3 additions and 3 deletions

View File

@ -14,8 +14,8 @@ const isBrowser = (userAgent) => {
} }
export default function(req, res, next) { export default function(req, res, next) {
if (process.env.NODE_ENV === 'production' && !req.url.startsWith('/card/@')) { //if (process.env.NODE_ENV === 'production' && !req.url.startsWith('/card/@')) {
res.spa = isBrowser(req.headers['user-agent']) || isHighLoadTime(process.env.LOCALE); // res.spa = isBrowser(req.headers['user-agent']) || isHighLoadTime(process.env.LOCALE);
} //}
next(); next();
} }