print browser log

This commit is contained in:
Hongbo Wu
2024-05-13 12:55:15 +08:00
parent 036889eadc
commit 475c636c1a

View File

@ -119,7 +119,7 @@ const getBrowserPromise = (async () => {
'--no-zygote',
'--window-size=1920,1080',
'--disable-extensions',
].filter((item) => !!item),
],
defaultViewport: {
deviceScaleFactor: 1,
hasTouch: false,
@ -130,7 +130,8 @@ const getBrowserPromise = (async () => {
},
executablePath: process.env.CHROMIUM_PATH,
headless: !!process.env.LAUNCH_HEADLESS,
timeout: 120000, // 2 minutes
timeout: 30_000, // 30 seconds
dumpio: true, // show console logs in the terminal
})) as Browser
})()