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
@@ -229,9 +229,7 @@ export const onResponseErrorAuthRefresh: FetchHook = async (ctx) => {
}
};
/**
* 兼容旧接口的 FetchHooks 形式
*/
/** Hooks consumed by the shared ofetch client. */
export const authRefreshInterceptor = {
onResponseError: onResponseErrorAuthRefresh,
};
@@ -50,9 +50,7 @@ export const onErrorLogging: FetchHook = async (ctx) => {
);
};
/**
* 兼容旧接口的 FetchHooks 形式(保留以备兼容)
*/
/** Hooks consumed by the shared ofetch client. */
export const loggingInterceptor = {
onRequest: onRequestLogging,
onResponse: onResponseLogging,
@@ -104,9 +104,7 @@ export const onRequestToken: FetchHook = async (ctx) => {
}
};
/**
* 兼容旧接口的 FetchHooks 形式
*/
/** Hooks consumed by the shared ofetch client. */
export const tokenInterceptor = {
onRequest: onRequestToken,
};