From 82fa0f0ccec6420a88f5a153062b5ce05ec3d619 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Tue, 1 Oct 2024 00:23:44 +0800 Subject: [PATCH] refactor: try to resolve no screenshot problem by remove single process. follow https://github.com/GoogleChrome/lighthouse/issues/11537#issuecomment-799895027 --- src/server/utils/screenshot/lighthouse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/utils/screenshot/lighthouse.ts b/src/server/utils/screenshot/lighthouse.ts index 560fc60..131c87b 100644 --- a/src/server/utils/screenshot/lighthouse.ts +++ b/src/server/utils/screenshot/lighthouse.ts @@ -13,7 +13,7 @@ export async function generateLighthouse(url: string): Promise { // Set to false if you want to see the script in action. executablePath: env.puppeteerExecutablePath, headless: true, - args: ['--no-sandbox', '--single-process', '--disable-dev-shm-usage'], + args: ['--no-sandbox', '--disable-dev-shm-usage'], defaultViewport: null, ignoreDefaultArgs: ['--enable-automation'], });