From 16da8709a70e27969125b997dbee8d9a741a0e02 Mon Sep 17 00:00:00 2001 From: Avris Date: Wed, 9 Feb 2022 08:45:14 +0000 Subject: [PATCH] disable no-ssr --- server/no-ssr.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/no-ssr.js b/server/no-ssr.js index 74478989..8916aff6 100644 --- a/server/no-ssr.js +++ b/server/no-ssr.js @@ -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(); }