Skip to content

Commit

Permalink
docs(gatsby-plugin-preload-fonts): add external chrome env var (#21845)
Browse files Browse the repository at this point in the history
Co-authored-by: Ward Peeters <[email protected]>
  • Loading branch information
nibtime and wardpeet authored Feb 29, 2020
1 parent 1f7ba9a commit 8256fd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/gatsby-plugin-preload-fonts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,6 @@ npm run preload-fonts -- --no-sandbox

This comes with [inherent security risks](https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md),
but you should be alright since you're only running it locally.

### Use different Chrome/Chromium executable
In some cases, you might have to point Puppeteer to an external installation of Chrome/Chromium (e.g., on Alpine Linux, the build-in version of Chromium does not work). You can set the `PUPPETEER_EXECUTABLE_PATH` environment variable to the path of your custom chromium installation. A list with all environment variables to configure Puppeteer can be found [at the official docs](https://pptr.dev/#?product=Puppeteer&version=v1.20.0&show=api-environment-variables).

0 comments on commit 8256fd4

Please sign in to comment.