😎 Discover cool tips and tricks for customization in our next Developer Deep Dive virtual event - sign up now!

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?
Feb 9, 2021, 4:12 PM
You need to the put the domain only.
Feb 9, 2021, 4:13 PM
module.exports = {
  
images: {
    
domains: ['<http://sanity.io|sanity.io>'],
  
},

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

}
Feb 9, 2021, 4:15 PM
this works
Feb 9, 2021, 4:15 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?