refactor: remove obsolete config and cross-layer exports

Drop the temporary static-generation retry override and stale hydration suppression. Refresh outdated Next.js and migration comments, and stop re-exporting Result through the storage layer.
This commit is contained in:
2026-07-13 18:45:59 +08:00
parent f7f910bd61
commit 4083cf0b6c
11 changed files with 31 additions and 118 deletions
+2 -6
View File
@@ -3,12 +3,8 @@
/**
* 全局 Error Boundary
*
* Next.js 16 文档要求 global-error 必须是 Client Component
* 16.2.7 存在 prerender `/_global-error` 的内部 bugworkStore 未初始化),
* 本文件通过不挂任何 Client Context 副作用、纯静态 HTML 输出来规避。
*
* 当根 layout 自身抛出错误时渲染;必须包含 `<html>` + `<body>`
* 因为它会替换根 layout。
* global-error 必须是 Client Component,并自行提供 `<html>` 和 `<body>`
* 因为它会在根 layout 渲染失败时替换整个文档。
*/
import { ExceptionHandler } from "@/core/errors";