update pay function

This commit is contained in:
2025-11-22 08:57:37 +08:00
parent 990ca3663e
commit e778742590
210 changed files with 8236 additions and 5345 deletions

View File

@@ -0,0 +1,42 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
// 配置基础路径为 /ai-chat
basePath: '/ai-chat',
// 配置资源前缀
assetPrefix: '/ai-chat/',
// 启用严格模式
reactStrictMode: true,
// 生产环境优化
poweredByHeader: false,
// 环境变量
env: {
// 这些会在构建时被替换
NEXT_PUBLIC_BASE_PATH: '/ai-chat',
},
// 重写规则 - 将 API 请求代理到后端
async rewrites() {
return [
{
source: '/api/:path*',
destination: 'http://localhost:5001/api/:path*',
},
{
source: '/mcp/:path*',
destination: 'http://localhost:8900/:path*',
},
];
},
// 配置允许的域名(用于 Next.js Image 组件)
images: {
domains: ['valuefrontier.cn', 'localhost'],
},
};
export default nextConfig;