From 0a43014142a9cc67278d58bb42f230abca625624 Mon Sep 17 00:00:00 2001 From: Jerry Date: Sat, 17 May 2025 12:36:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B5=8F=E8=A7=88=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/rss/screenshot.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 });