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
051b3473b9
commit
82fa0f0cce
@ -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