next.config.js
xxxxxxxxxx
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: ["images.unsplash.com"],
formats: ["image/avif", "image/webp"],
},
};
module.exports = nextConfig;
xxxxxxxxxx
const nextConfig = {
// Others config...,
images: {
domains: ['lh3.googleusercontent.com'], //Domain of image host
},
// Others config...,
};
module.exports = nextConfig;
xxxxxxxxxx
// next.config.js
module.exports = {
images: {
domains: ['assets.example.com'],
},
}