From 55192ec4fd58b44fad47ea8079b79aa1cf307598 Mon Sep 17 00:00:00 2001 From: Aaron Chong Date: Thu, 28 Dec 2023 09:15:27 +0000 Subject: [PATCH] Fix for puppeteer default cache directory Signed-off-by: Aaron Chong --- packages/react-components/.puppeteerrc.cjs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 packages/react-components/.puppeteerrc.cjs diff --git a/packages/react-components/.puppeteerrc.cjs b/packages/react-components/.puppeteerrc.cjs new file mode 100644 index 000000000..5f1a18276 --- /dev/null +++ b/packages/react-components/.puppeteerrc.cjs @@ -0,0 +1,9 @@ +const {join} = require('path'); + +/** + * @type {import("puppeteer").Configuration} + */ +module.exports = { + // Changes the cache location for Puppeteer. + cacheDirectory: join(__dirname, '.cache', 'puppeteer'), +};