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:
parent
de09059e65
commit
fe432f1332
@ -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'],
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user