How to resolve icon issue on the Next js when deployed to firebase

When deploy the code/next.js app to firebase the images and icons may not be load to avoid this issue we have to add the URL of the website where we are deploying the code to

 images: {
      unoptimized: true,
      domains: ['localhost','https://workorder-app.web.app/'],
    },

on “next.config.mjs” we have to add this code for configuring the images on main website also

Leave a comment

Your email address will not be published. Required fields are marked *