refactor: add no sandbox args in puppeteer
This commit is contained in:
parent
23c691541d
commit
8b6a74033c
@ -8,6 +8,7 @@ export async function generateLighthouse(url: string): Promise<Result> {
|
||||
const browser = await puppeteer.launch({
|
||||
// Set to false if you want to see the script in action.
|
||||
headless: 'new',
|
||||
args: ['--no-sandbox'],
|
||||
defaultViewport: null,
|
||||
ignoreDefaultArgs: ['--enable-automation'],
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user