Skip to content

Commit cc5283e

Browse files
chore(website): test user agent on heroku
1 parent 3aa051a commit cc5283e

File tree

1 file changed

+3
-1
lines changed
  • packages/overmind-website/backend

1 file changed

+3
-1
lines changed

packages/overmind-website/backend/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,11 @@ const searchData = getSearchData()
106106
const googleCrawlMiddleware = async function ssr(req, res, next) {
107107
const url = req.protocol + '://' + req.hostname + req.path
108108

109+
console.log(req.get('user-agent'))
110+
console.log(req.get('User-Agent'))
109111
if (
110112
req
111-
.get('user-agent')
113+
.get('User-Agent')
112114
.toLowerCase()
113115
.indexOf('googlebot') >= 0 &&
114116
!path.extname(url)

0 commit comments

Comments
 (0)