muse_creative_hotspots/next.config.ts
wxs 1fb288986a feat(init): Phase 1 — 基础架构搭建
- 完成 T-001: Next.js 14+ App Router 项目初始化,配置图片域名白名单
- 完成 T-002: TypeScript 类型定义(ContentItem, Platform, PlatformAdapter)
- 完成 T-003: API 代理层路由(热榜 + 详情)
- 完成 T-004: TikHub API 客户端与滑动窗口限流器
- 完成 T-005: 抖音平台适配器
- 完成 T-006: TikTok 平台适配器
- 完成 T-007: 小红书平台适配器
- 完成 T-008: 适配器注册表与平台配置
- 完成 T-009: Zustand Store(settings + favorites)
- 完成 T-010: 全局布局组件(Header + PlatformTabs)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-02 19:20:55 +08:00

26 lines
878 B
TypeScript

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;