mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-25 22:19:28 -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) {
|
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); // 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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user