From 846f1894d3906572ef363449ae4291e8ac8b6442 Mon Sep 17 00:00:00 2001 From: Andrea Date: Fri, 25 Feb 2022 17:35:03 +0100 Subject: [PATCH] [ssr] enable no-ssr back --- 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 7482b62c..c3bc131c 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(); }