rsnext/errors/next-image-unconfigured-host.md
2020-11-24 14:21:32 +00:00

563 B

next/image Un-configured Host

Why This Error Occurred

On one of your pages that leverages the next/image component, you passed a src value that uses a hostname in the URL that isn't defined in the images config in next.config.js.

Possible Ways to Fix It

Add the hostname to your images config in next.config.js:

// next.config.js
module.exports = {
  images: {
    domains: ['assets.example.com'],
  },
}