mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-25 05:54:25 -04:00
[optim] log request url, maybe that will help us debug the issue
This commit is contained in:
parent
f13e0007a2
commit
87db4888de
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user