Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit bafa7a6

Browse files
committed
use defaults for non vercel env
1 parent d57fb67 commit bafa7a6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.puppeteerrc.cjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
const isCI = !!process.env.VERCEL_ENV
22

3+
if (!isCI) {
4+
// just use the default configuration on non vercel CI environments
5+
return {}
6+
}
7+
38
/**
49
* @type {import("puppeteer").Configuration}
510
*/
@@ -8,7 +13,7 @@ module.exports = {
813
executablePath:
914
'/vercel/.cache/puppeteer/chrome/linux-131.0.6778.204/chrome-linux64/chrome',
1015
chrome: {
11-
skipDownload: isCI,
16+
skipDownload: true,
1217
},
1318
args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-dev-shm-usage'],
1419
}

0 commit comments

Comments
 (0)