Skip to content

Commit

Permalink
fix(contentful): reenable support for gif images (#31986)
Browse files Browse the repository at this point in the history
  • Loading branch information
axe312ger committed Jun 22, 2021
1 parent 2d4a791 commit a30aa0b
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 a30aa0b

Please sign in to comment.