Skip to content

Commit 95587ac

Browse files
committed
Update commandHandlers.js more return options
1 parent 0a3c25a commit 95587ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/commandHandlers.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import { getCategoriesFlags } from "./categoriesHandlers.js"
22

33
const makeCommandFromURL = (url, options) => {
44
const isOptionsCategories = getCategoriesFlags(options?.categories)
5-
return `lighthouse ${url} ${isOptionsCategories}--output json --disable-full-page-screenshot`
5+
const currentFlags = `${isOptionsCategories}--output json --disable-full-page-screenshot --chrome-flags="--no-sandbox --headless --disable-gpu"`
6+
const commandToRun = `lighthouse ${url} ${currentFlags}`
7+
return { commandToRun, currentFlags }
68
}
79

810
export { makeCommandFromURL }

0 commit comments

Comments
 (0)