Skip to content

Commit b23b3bd

Browse files
committed
Workaround PUPPETEER_EXECUTABLE_PATH not being respected
1 parent 1248c7f commit b23b3bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/chromium.js

+3
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ module.exports = function (b, opts) {
6262

6363
if (opts.chrome) {
6464
options.executablePath = opts.chrome;
65+
} else if (process.env.PUPPETEER_EXECUTABLE_PATH) {
66+
// Workaround for https://github.com/puppeteer/puppeteer/issues/6957
67+
options.executablePath = process.env.PUPPETEER_EXECUTABLE_PATH;
6568
}
6669

6770

0 commit comments

Comments
 (0)