- 产品编辑入口统一走 ProductFormFull(卖点/风格/人群/品牌词全字段); 修复开任务页 <form> 套 <form> 致"编辑产品"报错、改不了、跳回首个产品 - dashboard 入口卡片对齐实际路由: 系统管理(/config) 与 工作配置(/settings) 分开; settings ?tab=products 直达改用挂载后读 URL, 消除 hydration mismatch - 新增用户管理(users API/admin service/改密页) + alembic 022/023/024 - 上线部署: Dockerfile / docker-compose.prod+https / nginx https / .env.example - A8 三套正交叙事(痛点/场景/成分背书) + beige 调色去AI化 + 飞轮 text_import 高权重信号 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
33 lines
787 B
JavaScript
33 lines
787 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
turbopack: {
|
|
root: __dirname,
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'http',
|
|
hostname: '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;
|