项目从单体结构重构为 pnpm monorepo (shared/backend/frontend), 新增 YouTube、Instagram、Twitter/X、哔哩哔哩、微博 5 个平台适配器, 包含完整的单元测试和 E2E 测试覆盖。 - 完成 T-031~T-044: 5 个适配器实现、注册、配置和测试 - 重构前后端分离: Hono 后端 + Next.js 前端 - 151 个单元测试 + 21 个 Mock E2E + 25 个真实 E2E - 适配器基于真实 TikHub API 响应结构实现 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
34 lines
1.3 KiB
TypeScript
34 lines
1.3 KiB
TypeScript
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;
|