Merge branch 'PingChuan' into shiy-login
# Conflicts: # app/config/api-config.ts
This commit is contained in:
+24
-2
@@ -53,7 +53,7 @@ export default defineConfig({
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
// port: 5173,
|
||||
port: Number(process.env.PORT) || 5173,
|
||||
port: Number(process.env.PORT) || 51703,
|
||||
open: true,
|
||||
// open: false,
|
||||
allowedHosts: ['nas.7bm.co', 'localhost', '127.0.0.1'], // 允许的主机名列表1
|
||||
@@ -69,7 +69,29 @@ export default defineConfig({
|
||||
// 防止依赖预构建时触发页面刷新导致路由中断
|
||||
force: false,
|
||||
// 预构建这些依赖,避免首次加载时出现重新构建
|
||||
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',
|
||||
// Ant Design X 相关依赖
|
||||
'@ant-design/x',
|
||||
],
|
||||
},
|
||||
// SSR 配置 - 排除只能在客户端运行的包
|
||||
// ssr: {
|
||||
|
||||
Reference in New Issue
Block a user