From 759cd4129bc73cf21660b660a60238fed7ed19ff Mon Sep 17 00:00:00 2001 From: Avris Date: Wed, 14 Jul 2021 22:38:30 +0200 Subject: [PATCH] disable overload.js for now --- server/no-ssr.js | 1 - server/overload.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/server/no-ssr.js b/server/no-ssr.js index fb693dec..4111e2aa 100644 --- a/server/no-ssr.js +++ b/server/no-ssr.js @@ -15,7 +15,6 @@ const isBrowser = (userAgent) => { export default function(req, res, next) { if (process.env.NODE_ENV === 'production' && !req.url.startsWith('/card/@')) { - console.log(req.url, isBrowser(req.headers['user-agent']), isHighLoadTime(process.env.LOCALE)); // TODO remove later res.spa = isBrowser(req.headers['user-agent']) || isHighLoadTime(process.env.LOCALE); } next(); diff --git a/server/overload.js b/server/overload.js index 647e6672..d7cc159d 100644 --- a/server/overload.js +++ b/server/overload.js @@ -1,5 +1,5 @@ const overloadPeriods = { - en: [[15, 24]], + // en: [[15, 24]], }; module.exports = (locale, timestamp = new Date) => {