From 7ec0e255350627d6019ffbeae46c6b7ae2e37a7a Mon Sep 17 00:00:00 2001 From: Andrea Date: Wed, 9 Feb 2022 23:10:38 +0100 Subject: [PATCH] re-enable no-ssr because of broken hCaptcha --- 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 8916aff6..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(); }