Skip to content

Commit 763c526

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

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

api/_lib/puppeteer.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,8 @@ let _page: Page | null;
55
async function getPage() {
66
if (_page) return _page;
77
const options = {
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-
],
18-
defaultViewport: null,
8+
args: chromium.args,
9+
defaultViewport: chromium.defaultViewport,
1910
executablePath: await chromium.executablePath(),
2011
headless: chromium.headless,
2112
};

0 commit comments

Comments
 (0)