refactor: lazy load large modules (#33888)

This commit is contained in:
Stephen Zhou
2026-03-24 15:29:42 +08:00
committed by GitHub
parent 1674f8c2fb
commit 0c3d11f920
17 changed files with 104 additions and 106 deletions

View File

@ -0,0 +1,13 @@
'use client'
import { IS_DEV } from '@/config'
import dynamic from '@/next/dynamic'
const Agentation = dynamic(() => import('agentation').then(module => module.Agentation), { ssr: false })
export function AgentationLoader() {
if (!IS_DEV)
return null
return <Agentation />
}