init
This commit is contained in:
24
vw-agentic-rag/web/next.config.ts
Normal file
24
vw-agentic-rag/web/next.config.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user