Skip to content

Commit

Permalink
fix: Image component
Browse files Browse the repository at this point in the history
replace <img> with <Image/> as <img> was possibly yielding 502 errors on deployment
  • Loading branch information
rccsousa authored Oct 9, 2024
1 parent b735b0a commit 89e444a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/_components/FeaturedImage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Media } from '@/payload/payload-types'

export default function FeaturedImage({ src, className }: { className?: string; src: Media }) {
return (
<img
<Image width={'10'} height={'10'}
className={className ? className : styles.featuredImage}
src={getImage(src)}
alt={src.alt}
Expand Down

0 comments on commit 89e444a

Please sign in to comment.