文章
nextjs 使用外部图片链接
修改配置文件:next.config.ts
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
images: {
remotePatterns: [
{
protocol: "https",
hostname: "ui.shadcn.com"
}
]
}
};
export default nextConfig;