"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[64301],{3905:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>m});varr=t(67294);functioni(e,n,t){returnnine?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}functiona(e,n){vart=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){returnObject.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}returnt}functiono(e){for(varn=1;n<arguments.length;n++){vart=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}returne}functionl(e,n){if(null==e)return{};vart,r,i=function(e,n){if(null==e)return{};vart,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(i[t]=e[t]);returni}(e,n);if(Object.getOwnPropertySymbols){vara=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}returni}varp=r.createContext({}),u=function(e){varn=r.useContext(p),t=n;returne&&(t="function"==typeofe?e(n):o(o({},n),e)),t},c=function(e){varn=u(e.components);returnr.createElement(p.Provider,{value:n},e.children)},s={inlineCode:"code",wrapper:function(e){varn=e.children;returnr.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){vart=e.components,i=e.mdxType,a=e.originalType,p=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),f=u(t),m=i,d=f["".concat(p,".").concat(m)]||f[m]||s[m]||a;returnt?r.createElement(d,o(o({ref:n},c),{},{components:t})):r.createElement(d,o({ref:n},c))}));functionm(e,n){vart=arguments,i=n&&n.mdxType;if("string"==typeofe||i){vara=t.length,o=newArray(a);o[0]=f;varl={};for(varpinn)hasOwnProperty.call(n,p)&&(l[p]=n[p]);l.originalType=e,l.mdxType="string"==typeofe?e:i,o[1]=l;for(varu=2;u<a;u++)o[u]=t[u];returnr.createElement.apply(null,o)}returnr.createElement.apply(null,t)}f.displayName="MDXCreateElement"},76247:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>u,contentTitle:()=>l,default:()=>f,frontMatter:()=>o,metadata:()=>p,toc:()=>c});t(67294);varr=t(3905);functioni(){returni=Object.assign||function(e){for(varn=1;n<arguments.length;n++){vart=arguments[n];for(varrint)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}returne},i.apply(this,arguments)}functiona(e,n){if(null==e)return{};vart,r,i=function(e,n){if(null==e)return{};vart,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(i[t]=e[t]);returni}(e,n);if(Object.getOwnPropertySymbols){vara=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}returni}consto={},l="Configuration",p={unversionedId:"guides/configuration",id:"version-21.2.0/guides/configuration",title:"Configuration",description:"All defaults in Puppeteer can be customized in two ways:",source:"@site/versioned_docs/version-21.2.0/guides/configuration.mdx",sourceDirName:"guides",slug:"/guides/configuration",permalink:"/guides/configuration",draft:!1,tags:[],version:"21.2.0",frontMatter:{},sidebar:"docs",previous:{title:"Guides",permalink:"/category/guides"},next:{title:"Query Selectors",permalink:"/guides/query-selectors"}},u={},c=[{value:"Configuration files",id:"configuration-files",level:2},{value:"Examples",id:"examples",level:3},{value:"Changing the default cache directory",id:"changing-the-default-cache-directory",level:4},{value:"Environment variables",id:"environment-variables",level:2}],s={toc:c};functionf(e){var{components:n}=e,t=a(e,["components"]);return(0,r.kt)("wrapper",i({},s,t,{components:n,mdxType:"MDXLayout"}),(0,r.kt)("h1",i({},{id:"configuration"}),"Configuration"),(0,r.kt)("p",null,"All defaults in Puppeteer can be customized in two ways:"),(0,r.kt)("ol",null,(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("a",i({parentName: