next.jsnext-images

Next.js Image keeps showing unconfigured error message


hostname "www.gravatar.com" is not configured under images in your `next.config.js

My config:

const config = {
  reactStrictMode: true,
  images: {
    domains: ["gravatar.com"],
    disableStaticImages: true,
  },
}

module.exports = config;

I have restarted the serve after making the change to config. Completely at a loss at this point, only local images seem to work.


Solution

  • I can see two things: