my default args, please test it and tell me if this run smoothly.
Please note that --no-sandbox
isn’t secure when navigate to vulnerable sites, but it’s OK if you’re testing your own sites or apps. So make sure, you’re know what you’re doing.
const options = {
args: [
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-dev-shm-usage',
'--disable-accelerated-2d-canvas',
'--no-first-run',
'--no-zygote',
'--single-process',
'--disable-gpu'
],
headless: true
}
return await puppeteer.launch(options)