合并
This commit is contained in:
@@ -119,9 +119,12 @@ const portConfigs: Record<string, Partial<ApiConfig>> = {
|
|||||||
const configs: Record<string, ApiConfig> = {
|
const configs: Record<string, ApiConfig> = {
|
||||||
// 开发环境
|
// 开发环境
|
||||||
development: {
|
development: {
|
||||||
baseUrl: 'http://172.16.0.55:8073', // FastAPI后端(包含/dify代理)
|
baseUrl: 'http://172.16.0.58:8073', // FastAPI后端(包含/dify代理)
|
||||||
documentUrl: 'http://172.16.0.55:8073/docauditai/',
|
documentUrl: 'http://172.16.0.58:8073/docauditai/',
|
||||||
uploadUrl: 'http://172.16.0.55:8073/admin/documents',
|
uploadUrl: 'http://172.16.0.58:8073/admin/documents',
|
||||||
|
// baseUrl: 'http://172.16.0.55:8073', // FastAPI后端(包含/dify代理)
|
||||||
|
// documentUrl: 'http://172.16.0.55:8073/docauditai/',
|
||||||
|
// uploadUrl: 'http://172.16.0.55:8073/admin/documents',
|
||||||
|
|
||||||
collaboraUrl: 'http://172.16.0.81:9980',
|
collaboraUrl: 'http://172.16.0.81:9980',
|
||||||
// appUrl: 'http://172.16.0.34:51709',
|
// appUrl: 'http://172.16.0.34:51709',
|
||||||
|
|||||||
@@ -71,4 +71,9 @@ export default defineConfig({
|
|||||||
// 预构建这些依赖,避免首次加载时出现重新构建
|
// 预构建这些依赖,避免首次加载时出现重新构建
|
||||||
include: ['react-pdf', 'pdfjs-dist', 'dayjs', '@remix-run/node', 'react-dom', 'axios', 'dayjs/plugin/utc', '@remix-run/react', 'react-router-dom', 'jszip', 'ahooks', 'antd', 'immer', '@ant-design/icons', 'react-markdown', 'remark-math', 'remark-breaks', 'rehype-katex', 'remark-gfm'],
|
include: ['react-pdf', 'pdfjs-dist', 'dayjs', '@remix-run/node', 'react-dom', 'axios', 'dayjs/plugin/utc', '@remix-run/react', 'react-router-dom', 'jszip', 'ahooks', 'antd', 'immer', '@ant-design/icons', 'react-markdown', 'remark-math', 'remark-breaks', 'rehype-katex', 'remark-gfm'],
|
||||||
},
|
},
|
||||||
|
// SSR 配置 - 排除只能在客户端运行的包
|
||||||
|
// ssr: {
|
||||||
|
// noExternal: [],
|
||||||
|
// external: ['@monaco-editor/react', 'monaco-editor']
|
||||||
|
// },
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user