Skip to content

Commit

Permalink
Don't store the user data
Browse files Browse the repository at this point in the history
Currently, some runs create a folder like
/tmp/puppeteer_dev_chrome_profile-nXlTSz
with 13Mo of data

See also:
puppeteer/puppeteer#6414
  • Loading branch information
sbrunner committed Sep 24, 2024
1 parent 11cdca7 commit 6729d81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion buildtools/check-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 6729d81

Please sign in to comment.