stock/frontend/next.config.mjs
ZhangPeng 9aecdd036c Initial commit: OpenClaw Trading - AI多智能体量化交易系统
- 添加项目核心代码和配置
- 添加前端界面 (Next.js)
- 添加单元测试
- 更新 .gitignore 排除缓存和依赖
2026-02-27 03:47:40 +08:00

16 lines
400 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
async rewrites() {
return [
{
// Direct proxy for any /api requests to the backend
// This ensures frontend calls like /api/metrics correctly map to backend /api/metrics
source: '/api/:path*',
destination: 'http://127.0.0.1:8000/api/:path*',
},
];
},
};
export default nextConfig;