Skip to content

Commit

Permalink
adding args
Browse files Browse the repository at this point in the history
  • Loading branch information
BatMiles committed May 13, 2024
1 parent 08adaea commit 194aeb0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/pptr-utils/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,19 @@ export const savePageContent = async (index, outDir, page: Page, screenshot = tr
* Default Puppeteer options for dev
*/
export const defaultPuppeteerBrowserOptions = {
args: ['--no-sandbox', '--disable-dev-shm-usage', '--ignore-certificate-errors', '--autoplay-policy=no-user-gesture-required'],
args: [
'--no-sandbox',
'--disable-dev-shm-usage',
'--ignore-certificate-errors',
'--autoplay-policy=no-user-gesture-required',
'--aggressive-cache-discard',
'--disable-cache',
'--disable-application-cache',
'--disable-offline-load-stale-cache',
'--disable-gpu-shader-disk-cache',
'--media-cache-size=0',
'--disk-cache-size=0',
],
defaultViewport: null,
headless: true
};

0 comments on commit 194aeb0

Please sign in to comment.