mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add more puppeteer args
This commit is contained in:
parent
bb5b4ec174
commit
47c3578820
1 changed files with 9 additions and 1 deletions
|
|
@ -52,7 +52,15 @@ const userAgentForUrl = (url) => {
|
|||
// launch Puppeteer
|
||||
const getBrowserPromise = (async () => {
|
||||
return puppeteer.launch({
|
||||
args: ['--no-sandbox'],
|
||||
args: [
|
||||
'--disable-gpu',
|
||||
'--disable-dev-shm-usage',
|
||||
'--disable-setuid-sandbox',
|
||||
'--no-first-run',
|
||||
'--no-sandbox',
|
||||
'--no-zygote',
|
||||
'--single-process',
|
||||
],
|
||||
defaultViewport: { height: 1080, width: 1920 },
|
||||
executablePath: process.env.CHROMIUM_PATH ,
|
||||
headless: true, // process.env.LAUNCH_HEADLESS ? true : false,
|
||||
|
|
|
|||
Loading…
Reference in a new issue