VibeDict

🧩Outside image address not allowed (next/image)

What you'll see
Invalid src prop (https://images.example.com/a.jpg) on `next/image`, hostname "images.example.com" is not configured under images in your `next.config.js`

Next.js's image component only shows images from addresses you've allowed. That address isn't in the settings.

🤔 Why does it happen?

  • An image address from another site (or storage) was put in next/image
  • That address wasn't registered in the settings file (next.config)

🔧 Try this

  1. Add that domain to the images setting in next.config
  2. After changing the setting, stop and restart the dev server

🤖 Ask your AI like this

I get the error below from next/image. Please add this image address to the images setting in next.config safely (only the addresses needed). [Paste the full error here]

Replace the [ ] parts with your own situation, and paste the error with a few extra lines before and after it.

Related terms

Other errors in this group