[ssr] minor ssr improvements
This commit is contained in:
parent
9606002fde
commit
2f4c8531e8
|
@ -52,6 +52,7 @@ html {
|
|||
body {
|
||||
margin: 2rem;
|
||||
background-image: linear-gradient(74deg, rgba(236, 236, 236,0.02) 0%, rgba(236, 236, 236,0.02) 13%,transparent 13%, transparent 64%,rgba(55, 55, 55,0.02) 64%, rgba(55, 55, 55,0.02) 71%,rgba(239, 239, 239,0.02) 71%, rgba(239, 239, 239,0.02) 100%),linear-gradient(170deg, rgba(8, 8, 8,0.02) 0%, rgba(8, 8, 8,0.02) 1%,transparent 1%, transparent 60%,rgba(9, 9, 9,0.02) 60%, rgba(9, 9, 9,0.02) 80%,rgba(198, 198, 198,0.02) 80%, rgba(198, 198, 198,0.02) 100%),linear-gradient(118deg, rgba(134, 134, 134,0.02) 0%, rgba(134, 134, 134,0.02) 30%,transparent 30%, transparent 43%,rgba(85, 85, 85,0.02) 43%, rgba(85, 85, 85,0.02) 47%,rgba(103, 103, 103,0.02) 47%, rgba(103, 103, 103,0.02) 100%),linear-gradient(249deg, rgba(178, 178, 178,0.02) 0%, rgba(178, 178, 178,0.02) 8%,transparent 8%, transparent 47%,rgba(161, 161, 161,0.02) 47%, rgba(161, 161, 161,0.02) 61%,rgba(19, 19, 19,0.02) 61%, rgba(19, 19, 19,0.02) 100%),linear-gradient(90deg, rgb(255,255,255),rgb(255,255,255));
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.container {
|
||||
|
|
|
@ -12,6 +12,6 @@ const isBrowser = (userAgent) => {
|
|||
}
|
||||
|
||||
export default function(req, res, next) {
|
||||
res.spa = isBrowser(req.headers['user-agent']);
|
||||
res.spa = process.env.NODE_ENV === 'production' && isBrowser(req.headers['user-agent']);
|
||||
next()
|
||||
}
|
||||
|
|
Reference in New Issue