We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f06fb5d commit 46cb0b9Copy full SHA for 46cb0b9
src/index.js
@@ -1,4 +1,5 @@
1
import { join } from 'path';
2
+import { homedir } from 'os';
3
4
import chalk from 'chalk';
5
import * as dotenv from 'dotenv';
@@ -10,7 +11,8 @@ import getSettings from './lib/get-settings/index.js';
10
11
import runAudit from './lib/run-audit/index.js';
12
13
dotenv.config();
-const puppeteerCacheDir = join(__dirname, '.cache', 'puppeteer');
14
+
15
+const puppeteerCacheDir = join(homedir(), '.cache', 'puppeteer');
16
17
export const onPreBuild = async ({ utils } = {}) => {
18
// Puppeteer relies on a global cache since v19.x, which otherwise would not be persisted in Netlify builds
0 commit comments