Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

300
Views
Nextjs Image component does not work with external URL of image source

I have tried using the image component in Next.js with an external URL as a source but getting an error. I have also updated the next.config.js file as on the Next.js official docs but still, the same error persists.

Here is the error message: enter image description here

Here is the image component

<Image
src="https://images.unsplash.com/photo-1638913662180-afc4334cf422?ixlib=rb-1.2.1&ixid=MnwxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80"
alt="Coin"
width={500}
height={450}
/>

Here is the next.config.js file:

module.exports = {
  images: {
    domains: ['images.unsplash.com']
  },
}

Please help me solve this problem.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Restart the nextjs server each time you change the config file, next.config.js.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!