Skip to content

Commit 781dd30

Browse files
authored
Update puppeteer.ts
1 parent ff2833f commit 781dd30

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

api/_lib/puppeteer.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,16 @@ let _page: Page | null;
55
async function getPage() {
66
if (_page) return _page;
77
const options = {
8-
args: chromium.args,
8+
args: [
9+
'--disable-web-security',
10+
'--disable-setuid-sandbox',
11+
'--no-sandbox',
12+
'--disable-dev-shm-usage',
13+
'--disable-accelerated-2d-canvas',
14+
'--no-first-run',
15+
'--no-zygote',
16+
'--disable-gpu'
17+
],
918
defaultViewport: null,
1019
executablePath: await chromium.executablePath(),
1120
headless: chromium.headless,

0 commit comments

Comments
 (0)