Error after adding the hostname in next.config.js file

6 replies
Last updated: Feb 9, 2021
so I am getting this error but I have added the hostname in next.config.js file as well... any insights?
You need to the put the domain only.
module.exports = {
  
images: {
    
domains: ['<http://sanity.io|sanity.io>'],
  
},

}
this is not working either..
ah I am dumb.
module.exports = {
  
images: {
    
domains: ['<http://cd.sanity.io|cd.sanity.io>'],
  
},

}
this works

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?