Fix puppeteer

This commit is contained in:
HangerThem 2026-08-03 20:00:40 +02:00
parent ddd6b5597b
commit e3f9b53451
2 changed files with 4 additions and 2 deletions

View file

@ -4,7 +4,9 @@ let browserPromise: Promise<Browser> | null = null
function getBrowser() { function getBrowser() {
if (!browserPromise) { if (!browserPromise) {
browserPromise = launch({ headless: true }) browserPromise = launch({
args: ['--no-sandbox', '--disable-setuid-sandbox'],
})
} }
return browserPromise return browserPromise
} }

View file

@ -1,2 +1,2 @@
[phases.setup] [phases.setup]
aptPkgs = ["libnss3", "libatk1.0-0", "libatk-bridge2.0-0", "libcups2", "libgbm1", "libasound2t64", "libpangocairo-1.0-0", "libxss1", "libgtk-3-0", "libxshmfence1", "libglu1", "chromium", "unzip", "curl", "wget", "git"] aptPkgs = ["libnss3", "libatk1.0-0", "libatk-bridge2.0-0", "libcups2", "libgbm1", "libasound2t64", "libpangocairo-1.0-0", "libxss1", "libgtk-3-0", "libxshmfence1", "libglu1", "chromium", "unzip", "curl", "wget"]