Reference
AppRouterResponseHook
Allows callers to inspect or replace an app-router response before it is returned.
Signature
type AppRouterResponseHook = (response: Response, context: AppRouterResponseHookContext): Response | undefined | void | Promise<Response | undefined | void>