mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #4152 from omnivore-app/fix/browser-gpu
fix: use software graphic rendering instead of gpu and reduce browser launch timeout to 10 seconds
This commit is contained in:
commit
9b51d55557
1 changed files with 2 additions and 1 deletions
|
|
@ -45,6 +45,7 @@ export const getBrowser = async (): Promise<Browser> => {
|
|||
'--disable-dev-shm-usage',
|
||||
'--no-first-run',
|
||||
'--disable-background-networking',
|
||||
'--use-gl=swiftshader',
|
||||
],
|
||||
defaultViewport: {
|
||||
deviceScaleFactor: 1,
|
||||
|
|
@ -56,7 +57,7 @@ export const getBrowser = async (): Promise<Browser> => {
|
|||
},
|
||||
executablePath: process.env.CHROMIUM_PATH,
|
||||
headless: !!process.env.LAUNCH_HEADLESS,
|
||||
timeout: 30_000, // 30 seconds
|
||||
timeout: 10_000, // 10 seconds
|
||||
dumpio: true, // show console logs in the terminal
|
||||
})) as Browser
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue