diff --git a/packages/overmind-website/backend/index.js b/packages/overmind-website/backend/index.js index baf9fd2d..2c08c5b8 100644 --- a/packages/overmind-website/backend/index.js +++ b/packages/overmind-website/backend/index.js @@ -104,21 +104,13 @@ const apis = getApis() const searchData = getSearchData() const googleCrawlMiddleware = async function ssr(req, res, next) { - const url = req.protocol + '://' + req.hostname + req.path - - console.log( - req.get('User-Agent'), - path.extname(url), - path.extname(url).length - ) if ( req .get('User-Agent') .toLowerCase() .indexOf('googlebot') >= 0 && - !path.extname(url) + !path.extname(req.path) ) { - console.log('grabbing from service') res.send( await new Promise((resolve) => { https.get( @@ -134,7 +126,6 @@ const googleCrawlMiddleware = async function ssr(req, res, next) { }) ) } else { - console.log('next') next() } }