import type { NextConfig } from "next"; const nextConfig: NextConfig = { images: { remotePatterns: [ // 抖音 { protocol: "https", hostname: "*.douyinpic.com" }, { protocol: "https", hostname: "*.bytecdntp.com" }, { protocol: "https", hostname: "*.byteimg.com" }, { protocol: "https", hostname: "p*.douyinpic.com" }, // TikTok { protocol: "https", hostname: "*.tiktokcdn.com" }, { protocol: "https", hostname: "p16-sign-sg.tiktokcdn.com" }, // 小红书 { protocol: "https", hostname: "*.xhscdn.com" }, { protocol: "https", hostname: "sns-webpic-qc.xhscdn.com" }, { protocol: "https", hostname: "sns-avatar-qc.xhscdn.com" }, // 通用 CDN { protocol: "https", hostname: "*.pstatp.com" }, { protocol: "https", hostname: "*.snssdk.com" }, ], }, }; export default nextConfig;