This commit is contained in:
Slava 2026-07-14 19:16:50 -07:00 committed by GitHub
commit 116a28f49c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -377,6 +377,10 @@ export class BrowserManager {
// on Linux root/CI/container, where the sandbox requires unprivileged user
// namespaces that aren't available.
chromiumSandbox: shouldEnableChromiumSandbox(),
// Honor GSTACK_CHROMIUM_PATH here too. The bundled Playwright
// chrome-headless-shell can't load shared libs on NixOS; pointing at a
// system Chromium fixes headless rendering (e.g. make-pdf).
...(process.env.GSTACK_CHROMIUM_PATH ? { executablePath: process.env.GSTACK_CHROMIUM_PATH } : {}),
...(launchArgs.length > 0 ? { args: launchArgs } : {}),
...(this.proxyConfig ? { proxy: this.proxyConfig } : {}),
});