disable overload.js for now

This commit is contained in:
Avris 2021-07-14 22:38:30 +02:00
parent 463d707948
commit 759cd4129b
2 changed files with 1 additions and 2 deletions

View File

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

View File

@ -1,5 +1,5 @@
const overloadPeriods = {
en: [[15, 24]],
// en: [[15, 24]],
};
module.exports = (locale, timestamp = new Date) => {