Commit f1d769ce authored by Travis Fischer's avatar Travis Fischer

feat: add useful puppeteer launch args

parent 8a0043d3
...@@ -211,7 +211,18 @@ export async function getBrowser( ...@@ -211,7 +211,18 @@ export async function getBrowser(
return puppeteer.launch({ return puppeteer.launch({
headless: false, 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, ignoreHTTPSErrors: true,
executablePath, executablePath,
...launchOptions ...launchOptions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment