Skip to content

Commit ff2fac4

Browse files
fix(website): remove google crawl handling
1 parent 9b87c66 commit ff2fac4

File tree

1 file changed

+4
-2
lines changed
  • packages/overmind-website/backend

1 file changed

+4
-2
lines changed

packages/overmind-website/backend/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const path = require('path')
22
const express = require('express')
3-
const https = require('https')
3+
// const https = require('https')
44
const axios = require('axios')
55
const app = express()
66
const fs = require('fs')
@@ -121,6 +121,7 @@ const versions = getVersions()
121121

122122
const searchData = getSearchData()
123123

124+
/*
124125
const googleCrawlMiddleware = async function ssr(req, res, next) {
125126
const userAgent = req.get('User-Agent')
126127
@@ -147,6 +148,7 @@ const googleCrawlMiddleware = async function ssr(req, res, next) {
147148
next()
148149
}
149150
}
151+
*/
150152

151153
if (IS_PRODUCTION) {
152154
app.use((req, res, next) => {
@@ -157,7 +159,7 @@ if (IS_PRODUCTION) {
157159
}
158160
})
159161
}
160-
app.use(googleCrawlMiddleware)
162+
// app.use(googleCrawlMiddleware)
161163
app.use(express.static(path.join(__dirname, '..', 'dist')))
162164
app.use('/images', express.static(path.join(__dirname, '..', 'images')))
163165
app.get('/workshop/posts', api.posts)

0 commit comments

Comments
 (0)