Skip to content

Commit

Permalink
Update ssrBotsOnly.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nnqq authored Jun 1, 2022
1 parent 2b1e2c0 commit 86e9fe0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion middleware/ssrBotsOnly.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const isBot = (header) => {
}

module.exports = (req, res, next) => {
res.spa = !isBot(req.headers['user-agent'])
// res.spa = !isBot(req.headers['user-agent'])
res.spa = false
next()
}

0 comments on commit 86e9fe0

Please sign in to comment.