re-enable no-ssr because of broken hCaptcha

This commit is contained in:
Andrea 2022-02-09 23:10:38 +01:00
parent 2f24b4317e
commit 7ec0e25535
1 changed files with 3 additions and 3 deletions

View File

@ -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();
}