mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Enables AI agents to programmatically access the runtime metadata of the current page. At the moment, we only include the segment trie details, but this endpoint will be open to extension. Like `get_errors`, we support collecting information from multiple tabs.
17 lines
243 B
TypeScript
17 lines
243 B
TypeScript
'use client'
|
|
|
|
export default function RootError({
|
|
error,
|
|
reset,
|
|
}: {
|
|
error: Error
|
|
reset: () => void
|
|
}) {
|
|
return (
|
|
<div>
|
|
<h2>Root Error: {error.message}</h2>
|
|
<button onClick={reset}>Try again</button>
|
|
</div>
|
|
)
|
|
}
|