| 
1 | 1 | const launchOptions = {  | 
2 | 2 |   headless: 'new',  | 
3 | 3 |   dumpio: true,  | 
4 |  | -  args: ['--no-sandbox'],  | 
 | 4 | +  args: [  | 
 | 5 | +    '--no-sandbox',  | 
 | 6 | +    // Suppress D-Bus connection warnings  | 
 | 7 | +    '--disable-dev-shm-usage',  | 
 | 8 | +    '--disable-gpu',  | 
 | 9 | +    '--disable-software-rasterizer',  | 
 | 10 | +    '--disable-background-timer-throttling',  | 
 | 11 | +    '--disable-backgrounding-occluded-windows',  | 
 | 12 | +    '--disable-renderer-backgrounding',  | 
 | 13 | +    '--disable-features=TranslateUI',  | 
 | 14 | +    '--disable-ipc-flooding-protection',  | 
 | 15 | +    // Suppress OOM score adjustment warnings  | 
 | 16 | +    '--no-zygote',  | 
 | 17 | +    '--disable-setuid-sandbox',  | 
 | 18 | +    // Additional flags to reduce noise  | 
 | 19 | +    '--disable-logging',  | 
 | 20 | +    '--disable-extensions',  | 
 | 21 | +    '--disable-plugins',  | 
 | 22 | +    '--disable-sync',  | 
 | 23 | +    '--disable-translate',  | 
 | 24 | +    '--hide-scrollbars',  | 
 | 25 | +    '--mute-audio',  | 
 | 26 | +    '--no-first-run',  | 
 | 27 | +    '--disable-background-networking',  | 
 | 28 | +    '--disable-component-extensions-with-background-pages',  | 
 | 29 | +    '--disable-default-apps',  | 
 | 30 | +    '--disable-hang-monitor',  | 
 | 31 | +    '--disable-prompt-on-repost',  | 
 | 32 | +    '--disable-web-security',  | 
 | 33 | +    '--metrics-recording-only',  | 
 | 34 | +    '--no-default-browser-check',  | 
 | 35 | +    '--safebrowsing-disable-auto-update',  | 
 | 36 | +    '--enable-automation',  | 
 | 37 | +    '--password-store=basic',  | 
 | 38 | +    '--use-mock-keychain',  | 
 | 39 | +  ],  | 
 | 40 | +  env: {  | 
 | 41 | +    ...process.env,  | 
 | 42 | +    // Prevent Chromium from attempting to use D-Bus  | 
 | 43 | +    DBUS_SESSION_BUS_ADDRESS: 'unix:path=/dev/null',  | 
 | 44 | +    DBUS_SYSTEM_BUS_ADDRESS: 'unix:path=/dev/null',  | 
 | 45 | +  },  | 
5 | 46 |   // Fix protocol timed out  | 
6 | 47 |   // see: https://github.com/puppeteer/puppeteer/issues/9927  | 
7 | 48 |   protocolTimeout: 0,  | 
 | 
0 commit comments