Image is not showing on vercel link

I’m experiencing an issue with image loading in my Next.js portfolio project. The images work perfectly when running locally with npm run dev, but they fail to load on the Vercel deployment.

Project Details:

  • Next.js 14
  • Images are stored in the public directory
  • Using Next.js Image component
  • TypeScript and Tailwind CSS

Current Setup:

  • Images are properly placed in the public directory
  • Using next/image component with proper configurations
  • next.config.js includes image configurations with unoptimized: true and proper remotePatterns

What I’ve Tried:

  1. Updated next.config.js with various image configurations
  2. Created a custom Image component with error handling
  3. Verified all image paths are correct
  4. Confirmed images work perfectly in local development

Current next.config.js:

javascript

const nextConfig = {

output: 'standalone',

images: {

unoptimized: true,

domains: [''],

remotePatterns: [

{

protocol: 'https',

hostname: '',

},

{

protocol: 'http',

hostname: '',

}

],

}

}

The issue persists despite multiple deployments and configuration changes. Looking for guidance on what might be causing this discrepancy between local and production environments.

Repository: GitHub - Risad-Raihan/risadfindingpattern
Deployment URL: https://risadfindingpattern.vercel.app/

Hi Risad! Welcome to the Vercel Community :wave:

I just visited your site and it looks like the images are working again. Could you let us know what the fix ended up being?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.