make patchright work in docker

This commit is contained in:
Ralf Vogler 2025-05-26 00:46:09 +02:00
parent 6ce17f667e
commit 34b24f3eb7
3 changed files with 32 additions and 47 deletions

View file

@ -31,7 +31,8 @@ const context = await chromium.launchPersistentContext(cfg.dir.browser, {
args: [
'--hide-crash-restore-bubble',
],
chromiumSandbox: true, // https://github.com/Kaliiiiiiiiii-Vinyzu/patchright/issues/52
// The following makes the browser crash in docker with 'Chromium sandboxing failed!':
// chromiumSandbox: true, // https://github.com/Kaliiiiiiiiii-Vinyzu/patchright/issues/52
});
// console.log(context.browser().browserType()); // browser is null...