refactor: add no sandbox args in puppeteer
This commit is contained in:
parent
1485c9cf9b
commit
90ec6c2fcd
@ -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