Environment Variables
All of these are optional and getHtml will work without them all. If you wish to use a remote headless browser service then simply include the API Key and all puppeteer requests will connect to this service. Only BROWSERLESS is currently supported.Configuration
There are 3 levels of switches for headless mode:NODE_ENVenvironment variable (overrides all, if theNODE_ENVis “production” this overrides all including the headless param in the options & theHEADLESSenv )HEADLESSenvironment variable (ifNODE_ENVis not “production”,HEADLESSenv var set to “off” overrides theheadlessoptions param.)headlessoptions param value (defaulttrue) can be set tofalseobject passed to getHtml
HEADLESS param and do not change the headless options param.
The headless browser service to use (e.g., ‘browserless’ or ‘browserbase’)
Your Browserbase API key (currently NOT used)
Your Browserless API key
Set to ‘production’ for production environments
Set to String ‘on’ or ‘off’ to control headless mode

