2 Answers2

1

All you need to is add to add the hostname in the error code to next.config.js

hostname "scontent-atl3-2.xx.fbcdn.net" is not configured under images in your next.config.js

Open your next.config.js, add the following under images.domains. Do this for any domain, mind you don't add 'www', 'http' or 'https'.

images: {
    domains: ["scontent-atl3-2.xx.fbcdn.net"],
}
Chukwuemeka Maduekwe
  • 6,687
  • 5
  • 44
  • 67
0

Possible Solution: Remove Bundle Analyzer

Howdy devs,

After painstaking hours of messing with this, the problem wasn't the domains: area of the next.config file, it was a problem created by adding the@next/bundle-analyzer to the App (this pkg).

I don't know exactly what made things break, but our App is running Next v12.2.3 and it's possible that the bundle analyzer and our version of Next weren't playing nicely together.

So, I removed it and this error went away.

Davis Jones
  • 1,504
  • 3
  • 17
  • 25