Skip to content

Commit

Permalink
fix(contentful): reenable support for gif images (#31986) (#32029)
Browse files Browse the repository at this point in the history
(cherry picked from commit a30aa0b)

Co-authored-by: Benedikt Rötsch <axe312ger@users.noreply.github.com>
  • Loading branch information
GatsbyJS Bot and axe312ger authored Jun 22, 2021
1 parent 549cca9 commit f795be3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/gatsby-source-contentful/src/extend-node-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const {
// cache is more likely to go stale than the images (which never go stale)
// Note that the same image might be requested multiple times in the same run

const validImageFormats = new Set([`jpg`, `png`, `webp`])
// Supported Image Formats from https://www.contentful.com/developers/docs/references/images-api/#/reference/changing-formats/image-format
const validImageFormats = new Set([`jpg`, `png`, `webp`, `gif`])

if (process.env.GATSBY_REMOTE_CACHE) {
console.warn(
Expand Down

0 comments on commit f795be3

Please sign in to comment.