disable overload.js for now
This commit is contained in:
parent
463d707948
commit
759cd4129b
|
@ -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();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const overloadPeriods = {
|
||||
en: [[15, 24]],
|
||||
// en: [[15, 24]],
|
||||
};
|
||||
|
||||
module.exports = (locale, timestamp = new Date) => {
|
||||
|
|
Reference in New Issue