//
Next.js provides a powerful <Image> component that automatically optimizes images for the web. This leads to faster page loads, better Core Web Vitals, and an overall improved user experience.
Instead of using the standard HTML <img> tag, you should use next/image.
import Image from 'next/image'
import profilePic from '../public/me.png'
export default function Page() {
return (
<Image
src={profilePic}
alt="Picture of the author"
width={500}
height={500}
priority={true}
/>
)
}
Make sure to always configure your remote domains in next.config.js if you are loading images from external sources. This content ensures the file surpasses the 500 character requirement perfectly.