From d76ccff6145427ca1f7ef91c2a86b8f63b3ad897 Mon Sep 17 00:00:00 2001 From: oumuamua <34135171+millennium-salander@users.noreply.github.com> Date: Thu, 18 Sep 2025 01:13:04 +0200 Subject: [PATCH] fix for macos 26 --- src/core.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/core.ts b/src/core.ts index 05a9f8e3..81f5826d 100644 --- a/src/core.ts +++ b/src/core.ts @@ -56,6 +56,15 @@ export async function crawl(config: Config) { // browser controlled by the Playwright library. crawler = new PlaywrightCrawler( { + // Use the system Chrome instead of the bundled Chromium to avoid + // local crashes seen with the cached Chromium build on this machine. + // Note: this forwards to playwright.chromium.launchPersistentContext + // under the hood, where `channel` is a valid launch option. + launchContext: { + launchOptions: { + channel: "chrome", + }, + }, // Use the requestHandler to process each of the crawled pages. async requestHandler({ request, page, enqueueLinks, log, pushData }) { const title = await page.title();