From 1d168a84e2e81976b5e0fd0fe134fceb81cdd09e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Tue, 24 Sep 2024 08:44:06 +0200 Subject: [PATCH] Don't store the user data Currently some run create al folder like /tmp/puppeteer_dev_chrome_profile-nXlTSz with 13Mo of data See also: https://github.com/puppeteer/puppeteer/issues/6414 --- buildtools/check-example.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buildtools/check-example.js b/buildtools/check-example.js index 04ea43465cd0..0c757f238a14 100644 --- a/buildtools/check-example.js +++ b/buildtools/check-example.js @@ -122,8 +122,10 @@ function loaded(page, browser) { } (async () => { browser = await puppeteer.launch({ - args: ['--no-sandbox', '--disable-web-security', '--single-process'], + args: ['--no-sandbox', '--disable-web-security', '--single-process', '--incognito'], headless: true, + // Don't store the user data + userDataDir: '/dev/null', }); const page = await browser.newPage();