Configure Chrome path with CHROME_BIN in NPM driver

main
Elbert Alias 5 years ago
parent 190cb3d347
commit 5a855a7cfe

@ -40,6 +40,7 @@ class PuppeteerBrowser extends Browser {
super(options);
this.browser = () => puppeteer.launch({
executablePath: process.env.CHROME_BIN,
args: ['--no-sandbox', '--headless', '--disable-gpu', '--ignore-certificate-errors'],
});
}

Loading…
Cancel
Save