[optim] log request url, maybe that will help us debug the issue

This commit is contained in:
Andrea Vos 2021-07-10 16:48:40 +02:00
parent f13e0007a2
commit 87db4888de

View File

@ -15,6 +15,7 @@ const isBrowser = (userAgent) => {
export default function(req, res, next) {
if (process.env.NODE_ENV === 'production' && !req.url.startsWith('/card/@')) {
console.log(req.url); // TODO remove later
res.spa = isBrowser(req.headers['user-agent']) || isHighLoadTime(process.env.LOCALE);
}
next();