Skip to content

Commit

Permalink
Workaround PUPPETEER_EXECUTABLE_PATH not being respected
Browse files Browse the repository at this point in the history
  • Loading branch information
mantoni committed Apr 20, 2021
1 parent 1248c7f commit b23b3bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/chromium.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ module.exports = function (b, opts) {

if (opts.chrome) {
options.executablePath = opts.chrome;
} else if (process.env.PUPPETEER_EXECUTABLE_PATH) {
// Workaround for https://github.com/puppeteer/puppeteer/issues/6957
options.executablePath = process.env.PUPPETEER_EXECUTABLE_PATH;
}


Expand Down

0 comments on commit b23b3bd

Please sign in to comment.