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) {
|
export default function(req, res, next) {
|
||||||
if (process.env.NODE_ENV === 'production' && !req.url.startsWith('/card/@')) {
|
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);
|
res.spa = isBrowser(req.headers['user-agent']) || isHighLoadTime(process.env.LOCALE);
|
||||||
}
|
}
|
||||||
next();
|
next();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const overloadPeriods = {
|
const overloadPeriods = {
|
||||||
en: [[15, 24]],
|
// en: [[15, 24]],
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = (locale, timestamp = new Date) => {
|
module.exports = (locale, timestamp = new Date) => {
|
||||||
|
|
Reference in New Issue