fix: add ? to src on image as contentstack cannot handle &

This commit is contained in:
Simon Emanuelsson
2024-02-12 16:22:14 +01:00
parent e5324f6f2f
commit df2b99a135
5 changed files with 25 additions and 21 deletions

View 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}?`}
/>
)
}