fix: add chromium flags --disable-dev-shm-usage and --disable-gpu to prevent docker crash

This commit is contained in:
mstfyldz
2026-05-29 23:35:40 +03:00
parent 5615d0ecab
commit b69c3b0494
+6 -1
View File
@@ -6,7 +6,12 @@ async function getBrowser(): Promise<Browser> {
if (!browser || !browser.isConnected()) {
browser = await chromium.launch({
headless: true,
args: ["--no-sandbox", "--disable-setuid-sandbox"],
args: [
"--no-sandbox",
"--disable-setuid-sandbox",
"--disable-dev-shm-usage",
"--disable-gpu"
],
});
}
return browser;