Skip to content

Commit bc270d6

Browse files
fix(website): use noSandbox to make crawling rendering work
1 parent 3ccf93d commit bc270d6

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

packages/overmind-website/backend/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ const googleCrawlMiddleware = async function ssr(req, res, next) {
110110
.toLowerCase()
111111
.indexOf('googlebot') >= 0
112112
) {
113-
const browser = await puppeteer.launch({ headless: true })
113+
const browser = await puppeteer.launch({
114+
headless: true,
115+
args: ['--no-sandbox'],
116+
})
114117
const page = await browser.newPage()
115118
await page.goto(req.hostname + req.path, { waitUntil: 'networkidle0' })
116119
const html = await page.content()

0 commit comments

Comments
 (0)