fix: 修复前端构建问题 - 清理死代码和 Next.js 残留 #56
Reference in New Issue
Block a user
Delete Branch "fix/frontend-build-recovery"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
修复内容
核心发现
经过深度审计,发现
feature/smart-edit-plan分支的工作目录中 30 个前端文件被清空(9615 行删除),包括package.json、tsconfig.json、vite.config.ts等核心配置。develop分支已包含所有正确的配置文件和代码实现,因此本分支基于develop创建,仅需额外清理。本 PR 变更
next.config.jsnext-env.d.tssrc/App.tsxsrc/App.csssrc/store/workspaceStore.tssrc/components/business/QuotaDisplay.tsxsrc/components/layout/Header.tsximport ./Header.css,修复顶部导航无样式develop 分支已解决的问题(无需额外修改)
package.json— 完整的依赖和脚本声明tsconfig.json— 含@/路径别名配置vite.config.ts— 含@/alias、proxy、manualChunkssrc/router/index.tsx— 完整路由定义src/hooks/useAuth.ts— useLogin/useRegister/useLogout 实现src/api/tasks.ts— getProjectTasks/retryProjectTask 实现ProjectAssets.tsx—asset.file_size属性名已正确审计对照
对应审计报告中 P0(恢复构建能力)和 P1(恢复核心功能)的所有问题,以及 P2 中的死代码清理。