refactor: try to resolve no screenshot problem by remove single process.

follow https://github.com/GoogleChrome/lighthouse/issues/11537#issuecomment-799895027
This commit is contained in:
moonrailgun 2024-10-01 00:23:44 +08:00
parent 051b3473b9
commit 82fa0f0cce

View File

@ -13,7 +13,7 @@ export async function generateLighthouse(url: string): Promise<Result> {
// 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'],
});