我正在使用 Next.js 的 Image
组件(它是 Next.js 的新功能)。我尝试提供源 URL:
{`${API}/user/photo/${blog.postedBy.username}`}
但是它给我显示了这个错误。我也在我的next.config.js
文件中进行了更改。
But it showed me this error. I also made changes in my next.config.js
file.
module.exports = {
images: {
domains: ['localhost'],
},
}
但是对我都没有用。如果您了解这方面的任何信息,请帮忙解决。