From a30aa0b5c8e45e2634eb939e7533230b072eb9bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20R=C3=B6tsch?= Date: Tue, 22 Jun 2021 11:49:28 +0200 Subject: [PATCH] fix(contentful): reenable support for gif images (#31986) --- packages/gatsby-source-contentful/src/extend-node-type.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/gatsby-source-contentful/src/extend-node-type.js b/packages/gatsby-source-contentful/src/extend-node-type.js index 989a3216bd5c4..f7b899356af6b 100644 --- a/packages/gatsby-source-contentful/src/extend-node-type.js +++ b/packages/gatsby-source-contentful/src/extend-node-type.js @@ -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(