Skip to content

perf(frontend): upgrade Next.js for faster Turbopack - #3949

Merged
YehongPan merged 5 commits into
developfrom
xyq-optimize_frontend_build
Sep 17, 2026
Merged

YehongPan merged 5 commits into
developfrom
xyq-optimize_frontend_build

Conversation

@xuyaqist

@xuyaqist xuyaqist commented Sep 17, 2026

Copy link
Copy Markdown
Contributor
  1. 通过启动Turbopack优化前端本地启动时编译速度
  2. 升级nextjs 从v15->v16
  3. 升级react19
  4. 升级ant design v6

Enable Turbopack in the custom development server and stabilize its configuration dependencies.

Co-authored-by: Codex <noreply@openai.com>

Generated-by: gpt-5
Upgrade Next.js and React to 16.3.5 and 19.2.3, migrate lint and proxy configuration, and resolve React 19 type compatibility.\n\nCo-authored-by: Codex <noreply@openai.com>\nGenerated-by: gpt-5
Allow Next.js to handle its own HMR WebSocket upgrades without emitting a misleading proxy log.\n\nCo-authored-by: Codex <noreply@openai.com>\nGenerated-by: gpt-5
Replace deprecated modal, drawer, and alert props with their Ant Design 6 equivalents. Mount hidden memory forms before use and make memory configuration card spacing explicit.

Co-authored-by: Codex <noreply@openai.com>

Generated-by: gpt-5
Use Node 22 for the web image build and runtime stages so freshly resolved dependencies meet their engine requirements.

Co-authored-by: Codex <noreply@openai.com>

Generated-by: gpt-5
Copilot AI lite review requested due to automatic review settings September 17, 2026 11:31
@YehongPan
YehongPan merged commit ff69740 into develop Sep 17, 2026
9 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

This is a multi-major-version frontend and runtime upgrade, and the repository’s required npm run check-all validation was not executed here.

Pull request overview

Upgrades the frontend to Next.js 16, React 19, and Ant Design 6 while enabling Turbopack and updating compatibility APIs.

Changes:

  • Updated frontend dependencies, TypeScript, ESLint, Tailwind, and Docker Node.js versions.
  • Migrated Next.js proxy/configuration and Ant Design component APIs.
  • Adjusted React 19 typings and frontend layout/image handling.
File summaries
File Description
frontend/types/memory.ts Updated React JSX return type.
frontend/tsconfig.json Enabled automatic JSX runtime and Next dev types.
frontend/tailwind.config.js Simplified Tailwind configuration.
frontend/server.js Enabled Turbopack and configurable port handling.
frontend/proxy.ts Migrated middleware export to Next.js proxy API.
frontend/package.json Upgraded Next, React, Ant Design, and tooling.
frontend/next.config.mjs Added Turbopack alias configuration.
frontend/lib/empty-canvas.js Added optional canvas stub.
frontend/hooks/mcpTools/useContainerPortAvailability.ts Updated React ref initialization.
frontend/eslint.config.mjs Added flat ESLint configuration.
frontend/components/memory/MemoryEmbeddingMonitor.tsx Migrated modal mask API.
frontend/components/common/markdownRenderer.tsx Updated React 19 prop and JSX typing.
frontend/components/common/Diagram.tsx Updated React ref typing.
frontend/components/auth/loginModal.tsx Migrated Alert API.
frontend/components/auth/DeleteAccountModal.tsx Migrated Alert API.
frontend/app/[locale]/share/[shareId]/page.tsx Migrated Alert API.
frontend/app/[locale]/resource-manage/components/UserManageComp.tsx Migrated Alert API.
frontend/app/[locale]/resource-manage/components/resources/SuQuotaModal.tsx Migrated modal destruction API.
frontend/app/[locale]/resource-manage/components/resources/PlatformQuotaPanel.tsx Migrated Alert API.
frontend/app/[locale]/oauth/complete/page.tsx Migrated Alert API.
frontend/app/[locale]/newchat/ui/markdown-text.tsx Normalized image source handling.
frontend/app/[locale]/newchat/ui/authenticated-image.tsx Added safe image source normalization.
frontend/app/[locale]/newchat/assistant-ui/conversation-knowledge-scope-modal.tsx Migrated Alert API.
frontend/app/[locale]/models/components/modelConfig.tsx Migrated Alert API.
frontend/app/[locale]/models/components/model/ModelOverrideModal.tsx Migrated modal destruction API.
frontend/app/[locale]/models/components/model/ModelEditDialogV2.tsx Migrated modal destruction API.
frontend/app/[locale]/models/components/model/ModelCapacityFields.tsx Migrated Alert API.
frontend/app/[locale]/models/components/model/ModelAddDialogV2.tsx Migrated modal and Alert APIs.
frontend/app/[locale]/memory/ProviderTestPanel.tsx Migrated Drawer and Alert APIs.
frontend/app/[locale]/memory/ProviderConfigDialog.tsx Migrated Drawer sizing API.
frontend/app/[locale]/memory/ProviderConfigCard.tsx Migrated Alert API.
frontend/app/[locale]/memory/MemoryManager.tsx Updated layout and modal rendering behavior.
frontend/app/[locale]/memory/memory.css Updated memory settings spacing.
frontend/app/[locale]/memory/LongTermMemoryPanel.tsx Migrated modal mask API.
frontend/app/[locale]/memory/DreamingConfigCards.tsx Adjusted layout spacing.
frontend/app/[locale]/mcp-space/components/McpServiceDetailModal.tsx Migrated Alert API.
frontend/app/[locale]/mcp-space/components/add/AddMcpServiceModal.tsx Migrated modal mask API.
frontend/app/[locale]/market/components/MarketAgentDetailModal.tsx Migrated Alert API.
frontend/app/[locale]/knowledges/components/knowledge/PersonalKnowledgeBaseCapacityBar.tsx Migrated Alert API.
frontend/app/[locale]/knowledges/components/document/DocumentList.tsx Migrated modal destruction API.
frontend/app/[locale]/evaluation/page.tsx Migrated Drawer mask APIs.
frontend/app/[locale]/evaluation/[id]/page.tsx Migrated Alert API.
frontend/app/[locale]/agents/components/agentConfig/SkillDetailModal.tsx Migrated modal mask API and Alert API.
frontend/app/[locale]/agents/components/agentConfig/skill/SkillTagManagementModal.tsx Removed deprecated modal prop.
frontend/app/[locale]/agents/components/agentConfig/skill/SkillConfigModal.tsx Migrated modal mask API.
frontend/app/[locale]/agents/components/agentConfig/skill/SelectSkillsDialog.tsx Removed deprecated modal prop.
frontend/app/[locale]/agents/components/agent-prompt.tsx Migrated modal destruction API.
frontend/.eslintrc.json Removed legacy ESLint configuration.
deploy/images/dockerfiles/web/Dockerfile Upgraded runtime and build images to Node 22.
Review details
  • Files reviewed: 49/49 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants