mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
[ssr] enable no-ssr back
This commit is contained in:
parent
302a8541f3
commit
5612e50606
@ -14,8 +14,8 @@ 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/@')) {
|
||||||
// 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