diff --git a/lib/rss/screenshot.js b/lib/rss/screenshot.js index a60cd46..6566a2f 100644 --- a/lib/rss/screenshot.js +++ b/lib/rss/screenshot.js @@ -20,7 +20,10 @@ const screenshot = { .replace('{{feedTitle}}', feedItem.feedTitle) .replace('{{image}}', feedItem.image || ''); - const browser = await puppeteer.launch({ headers: 'new' }); + const browser = await puppeteer.launch({ + headers: 'new', + args: ['--no-sandbox', '--disable-setuid-sandbox'], + }); const page = await browser.newPage(); await page.setContent(html, { waitUntil: 'networkidle0' }); await page.setViewport({ width: 800, height: 600 });