update pay function
This commit is contained in:
42
src/views/AgentChat/neuratalk/next.config.ts
Normal file
42
src/views/AgentChat/neuratalk/next.config.ts
Normal 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;
|
||||
Reference in New Issue
Block a user