修复构建

This commit is contained in:
北枳 2025-08-31 00:01:17 +08:00
parent 13a2e0ed22
commit c7daf47513
2 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,10 @@
'use client'; 'use client';
import WorkFlow from '@/components/pages/work-flow'; import dynamic from 'next/dynamic';
const WorkFlow = dynamic(() => import('@/components/pages/work-flow'), {
ssr: false
});
export default function ScriptWorkFlowPage() { export default function ScriptWorkFlowPage() {
return <WorkFlow />; return <WorkFlow />;

View File

@ -49,10 +49,8 @@ const nextConfig = {
]; ];
}, },
// 确保静态文件可以正常访问 // 设置生成超时时间
experimental: { staticPageGenerationTimeout: 120,
staticPageGenerationTimeout: 120,
},
}; };
module.exports = nextConfig; module.exports = nextConfig;