fix: add ? to src on image as contentstack cannot handle &
This commit is contained in:
11
components/Image/index.tsx
Normal file
11
components/Image/index.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import NextImage, { type ImageProps } from "next/image"
|
||||
|
||||
// Next/Image adds & instead of ? before the params
|
||||
export default function Image(props: ImageProps) {
|
||||
return (
|
||||
<NextImage
|
||||
{...props}
|
||||
src={`${props.src}?`}
|
||||
/>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user