25 lines
472 B
TypeScript
25 lines
472 B
TypeScript
|
|
import type { NextConfig } from "next";
|
||
|
|
|
||
|
|
const nextConfig: NextConfig = {
|
||
|
|
output: 'standalone',
|
||
|
|
basePath: '/agentic-rag',
|
||
|
|
assetPrefix: '/agentic-rag',
|
||
|
|
images: {
|
||
|
|
unoptimized: true, // 禁用图片优化,使用直接路径
|
||
|
|
},
|
||
|
|
async rewrites() {
|
||
|
|
return [
|
||
|
|
{
|
||
|
|
source: '/webchat',
|
||
|
|
destination: '/',
|
||
|
|
},
|
||
|
|
{
|
||
|
|
source: '/webchat/:path*',
|
||
|
|
destination: '/:path*',
|
||
|
|
},
|
||
|
|
];
|
||
|
|
},
|
||
|
|
};
|
||
|
|
|
||
|
|
export default nextConfig;
|