This commit is contained in:
2025-12-03 12:08:44 +08:00
parent d88cfc818b
commit 6e2cd453f8
2 changed files with 11 additions and 3 deletions
+6 -3
View File
@@ -119,9 +119,12 @@ const portConfigs: Record<string, Partial<ApiConfig>> = {
const configs: Record<string, ApiConfig> = {
// 开发环境
development: {
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',
baseUrl: 'http://172.16.0.58:8073', // FastAPI后端(包含/dify代理)
documentUrl: 'http://172.16.0.58:8073/docauditai/',
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',
// appUrl: 'http://172.16.0.34:51709',
+5
View File
@@ -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'],
},
// SSR 配置 - 排除只能在客户端运行的包
// ssr: {
// noExternal: [],
// external: ['@monaco-editor/react', 'monaco-editor']
// },
});