Skip to content

Commit f795be3

Browse files
GatsbyJS Botaxe312ger
andauthored
fix(contentful): reenable support for gif images (#31986) (#32029)
(cherry picked from commit a30aa0b) Co-authored-by: Benedikt Rötsch <axe312ger@users.noreply.github.com>
1 parent 549cca9 commit f795be3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/gatsby-source-contentful/src/extend-node-type.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ const {
3232
// cache is more likely to go stale than the images (which never go stale)
3333
// Note that the same image might be requested multiple times in the same run
3434

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

3738
if (process.env.GATSBY_REMOTE_CACHE) {
3839
console.warn(

0 commit comments

Comments
 (0)