Back to Browsershot

Passing environment variables to the browser

docs/miscellaneous-options/passing-environment-variables-to-the-browser.md

5.3.0210 B
Original Source

If you want to set custom environment variables which affect the browser instance you can use:

php
Browsershot::url('https://example.com')
   ->setEnvironmentOptions(['TZ' => 'Pacific/Auckland'])
   ...