fix: reduce web probe chromium baseline memory
This commit is contained in:
@@ -1603,9 +1603,14 @@ function proxyConfigFromEnv(targetBaseUrl) {
|
||||
}
|
||||
|
||||
function chromiumLaunchOptionsForProxy(proxy) {
|
||||
const baseArgs = chromiumLowResourceArgs();
|
||||
const base = { env: browserProcessEnvWithoutProxy() };
|
||||
if (proxy === null) return { ...base, args: ["--no-proxy-server"] };
|
||||
return { ...base, proxy };
|
||||
if (proxy === null) return { ...base, args: [...baseArgs, "--no-proxy-server"] };
|
||||
return { ...base, proxy, args: baseArgs };
|
||||
}
|
||||
|
||||
function chromiumLowResourceArgs() {
|
||||
return ["--disable-gpu", "--disable-gpu-compositing", "--no-sandbox"];
|
||||
}
|
||||
|
||||
function browserProcessEnvWithoutProxy() {
|
||||
|
||||
Reference in New Issue
Block a user