import type { NextConfig } from "next"; const nextConfig: NextConfig = { transpilePackages: ["@muse/shared"], 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: "*.tiktokcdn-us.com" }, { protocol: "https", hostname: "p16-sign-sg.tiktokcdn.com" }, { protocol: "https", hostname: "p16-common-sign.tiktokcdn-us.com" }, // 小红书 { protocol: "https", hostname: "*.xhscdn.com" }, { protocol: "https", hostname: "sns-webpic-qc.xhscdn.com" }, { protocol: "https", hostname: "sns-avatar-qc.xhscdn.com" }, { protocol: "https", hostname: "sns-na-i6.xhscdn.com" }, { protocol: "https", hostname: "ci.xiaohongshu.com" }, { protocol: "http", hostname: "ci.xiaohongshu.com" }, { protocol: "https", hostname: "picasso-static.xiaohongshu.com" }, // 通用 CDN { protocol: "https", hostname: "*.pstatp.com" }, { protocol: "https", hostname: "*.snssdk.com" }, { protocol: "https", hostname: "*.douyinvod.com" }, ], }, }; export default nextConfig;