Unhandled Runtime Error

Error: Invalid src prop (https://www.example.com/pre-school/words/84words/assets/img/default.jpg) on `next/image`, hostname "www.example.com" is not configured under images in your `next.config.js`
See more info: https://nextjs.org/docs/messages/next-image-unconfigured-host

To solve this problem open the next.config.js file and add the Fully Qualified Domain Name (FQDN) in domains array, for example:

module.exports = {
  basePath: '',
  images: {
    domains: ['images.unsplash.com','www.example.com'],
  },
  swcMinify: true,
};

 

Hope this helps.