This commit is contained in:
2025-05-13 21:30:06 +08:00
commit 60abc68c60
115 changed files with 12478 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
// 其他 Next.js 配置...
// 添加 rewrites 配置用于开发环境代理
async rewrites() {
return [
{
source: '/api/:path*', // 匹配所有以 /api 开头的路径
destination: 'http://localhost:7529/api/:path*', // 代理到后端服务地址
},
];
},
};
export default nextConfig;