Skip to content

Commit

Permalink
docs(www): better GATSBY_SCREENSHOT_PLACEHOLDER explanation (#10797)
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet authored and pieh committed Jan 3, 2019
1 parent e2a6aa1 commit 62db8e6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions www/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ GITHUB_API_TOKEN=YOUR_TOKEN_HERE

The `.env.development` file is ignored by git. Your token should never be committed.

## Screenshots placeholder
## Running slow build? (Screenshots placeholder)

If you are not working on starter or site showcase, it might be beneficial to use a placeholder image instead of actual screenshots. It will skip downloading screenshots and generating responsive images for all screenshots and replace them with a placeholder image. Check [`gatsby-transformer-screenshot` docs](http://www.gatsbyjs.org/packages/gatsby-transformer-screenshot#placeholder-image) to learn how to use it.
If you are not working on starter or site showcase, it might be beneficial to use a placeholder image instead of actual screenshots. It will skip downloading screenshots and generating responsive images for all screenshots and replace them with a placeholder image.

Add the following env variable to your `.env.development` file to enable placeholder behaviour:

```
GATSBY_SCREENSHOT_PLACEHOLDER=true
```

For more information checkout [`gatsby-transformer-screenshot` docs](http://www.gatsbyjs.org/packages/gatsby-transformer-screenshot#placeholder-image).

0 comments on commit 62db8e6

Please sign in to comment.