mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-25 14:09:03 -04:00
[perf] more logging
This commit is contained in:
parent
dac9e5a560
commit
2a21e3ec51
@ -15,7 +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
|
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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user