将 Clover 从上层产品包旧仓库中独立出来,建立专属版本控制。 当前状态=纵切片端到端已打通(登录→选品→出文出图→审核→下载包), M1文案质量去套路化已验收。此提交作为后续按核销清单逐条修复的基线。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
25 lines
671 B
JavaScript
25 lines
671 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
images: {
|
|
domains: ['localhost'],
|
|
},
|
|
async rewrites() {
|
|
const apiBase = process.env.NEXT_PUBLIC_API_BASE_URL || 'http://localhost:8000';
|
|
return [
|
|
{
|
|
source: '/api/:path*',
|
|
destination: `${apiBase}/api/:path*`,
|
|
},
|
|
{
|
|
// 图片等静态资源:后端 /uploads 由 StaticFiles 提供,前端代理过去
|
|
// 否则 <img src="/uploads/..."> 会请求前端3000端口导致404破图
|
|
source: '/uploads/:path*',
|
|
destination: `${apiBase}/uploads/:path*`,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|