diff --git a/components/blocks/CarouselFeature.tsx b/components/blocks/CarouselFeature.tsx index 7b5e4dd27..936393d9e 100644 --- a/components/blocks/CarouselFeature.tsx +++ b/components/blocks/CarouselFeature.tsx @@ -1,3 +1,4 @@ +import Image from 'next/image'; import React, { useEffect, useRef, useState } from 'react'; import { tinaField } from 'tinacms/dist/react'; import { sanitizeLabel } from 'utils/sanitizeLabel'; @@ -170,12 +171,16 @@ export function CarouselFeatureBlock({ data, index }) { const fileExtension = fullVideoUrl.split('.').pop(); if (fileExtension === 'gif') { + // Width and height values *must* be provided to NextJS's Image component to build, + // but they will not determine the rendered size of the image in this case. return (