2

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.

Nicole Staline
  • 557
  • 4
  • 15

2 Answers2

0

I can see two things:

  • You've got images within images in your config
  • You're missing www. in the gravatar.com domain (might not be the case, but just in case)
Lazar Nikolov
  • 928
  • 14
  • 21
0

need to do:

images: {
    domains: [YOUR_DOMAINS],
    disableStaticImages: true,
}

and in your config you placed images under images :

images: {
    images: {
      domains: ["gravatar.com"],
    },
    disableStaticImages: true,
  }
Manish Jha
  • 263
  • 2
  • 13
  • Looks like I copied over the block wrong, there is actually only one `images`. Updated main post to reflect. Still same issue. – Nicole Staline Jan 20 '23 at 16:47