Skip to content

Commit

Permalink
be explicit about options.args
Browse files Browse the repository at this point in the history
  • Loading branch information
dphiffer committed Apr 26, 2024
1 parent 0234cc6 commit dfbb553
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion src/collector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,41 @@ export const collect = async (inUrl: string, args: CollectorOptions) => {

const options = {
...defaultPuppeteerBrowserOptions,
args: [...defaultPuppeteerBrowserOptions.args, ...args.extraChromiumArgs],
// args: [...defaultPuppeteerBrowserOptions.args, ...args.extraChromiumArgs],
args: [
'--no-sandbox',
'--disable-dev-shm-usage',
'--ignore-certificate-errors',
'--autoplay-policy=no-user-gesture-required',
'--allow-running-insecure-content',
'--autoplay-policy=user-gesture-required',
'--disable-background-timer-throttling',
'--disable-component-update',
'--disable-domain-reliability',
'--disable-features=AudioServiceOutOfProcess,IsolateOrigins,site-per-process',
'--disable-ipc-flooding-protection',
'--disable-print-preview',
'--disable-dev-shm-usage',
'--disable-setuid-sandbox',
'--disable-site-isolation-trials',
'--disable-speech-api',
'--disable-web-security',
'--disk-cache-size=33554432',
'--enable-features=SharedArrayBuffer',
'--hide-scrollbars',
'--ignore-gpu-blocklist',
'--in-process-gpu',
'--mute-audio',
'--no-default-browser-check',
'--no-first-run',
'--no-pings',
'--no-sandbox',
'--no-zygote',
'--use-gl=angle',
'--use-angle=swiftshader',
'--window-size=1920,1080',
// '--single-process'
],
headless: args.headless,
userDataDir
};
Expand Down

0 comments on commit dfbb553

Please sign in to comment.