From b23b3bdf039c8b0f4b5af92b18c8ec05cd44f58f Mon Sep 17 00:00:00 2001 From: Maximilian Antoni Date: Tue, 20 Apr 2021 09:57:21 +0200 Subject: [PATCH] Workaround PUPPETEER_EXECUTABLE_PATH not being respected --- lib/chromium.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/chromium.js b/lib/chromium.js index 50937e7d..1a0f3a26 100644 --- a/lib/chromium.js +++ b/lib/chromium.js @@ -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; }