update the next.config.js file
import type { NextConfig } from "next"; const nextConfig: NextConfig = { images: { domains: ["images.pexels.com"], }, }; export default nextConfig;