We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 781dd30 commit 763c526Copy full SHA for 763c526
api/_lib/puppeteer.ts
@@ -5,17 +5,8 @@ let _page: Page | null;
5
async function getPage() {
6
if (_page) return _page;
7
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,
+ args: chromium.args,
+ defaultViewport: chromium.defaultViewport,
19
executablePath: await chromium.executablePath(),
20
headless: chromium.headless,
21
};
0 commit comments