feat: add useful puppeteer launch args

pull/155/head
Travis Fischer 2022-12-17 00:09:32 -06:00
rodzic 8a0043d343
commit f1d769ce6b
1 zmienionych plików z 12 dodań i 1 usunięć

Wyświetl plik

@ -211,7 +211,18 @@ export async function getBrowser(
return puppeteer.launch({
headless: false,
args: ['--no-sandbox', '--exclude-switches', 'enable-automation'],
// https://peter.sh/experiments/chromium-command-line-switches/
args: [
'--no-sandbox',
'--exclude-switches',
'enable-automation',
'--disable-infobars',
'--disable-dev-shm-usage',
'--disable-blink-features=AutomationControlled',
'--no-first-run',
'--no-service-autorun',
'--password-store=basic'
],
ignoreHTTPSErrors: true,
executablePath,
...launchOptions