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:
@@ -3,12 +3,8 @@
|
||||
/**
|
||||
* 全局 Error Boundary
|
||||
*
|
||||
* Next.js 16 文档要求 global-error 必须是 Client Component。
|
||||
* 16.2.7 存在 prerender `/_global-error` 的内部 bug(workStore 未初始化),
|
||||
* 本文件通过不挂任何 Client Context 副作用、纯静态 HTML 输出来规避。
|
||||
*
|
||||
* 当根 layout 自身抛出错误时渲染;必须包含 `<html>` + `<body>`,
|
||||
* 因为它会替换根 layout。
|
||||
* global-error 必须是 Client Component,并自行提供 `<html>` 和 `<body>`,
|
||||
* 因为它会在根 layout 渲染失败时替换整个文档。
|
||||
*/
|
||||
|
||||
import { ExceptionHandler } from "@/core/errors";
|
||||
|
||||
Reference in New Issue
Block a user