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/build errors from the current devtool overlay of a dev session. The errors are pretty-printed by default with source-mapped stack frames. In particular, it supports pulling error information from multiple browser tabs.
15 lines
288 B
TypeScript
15 lines
288 B
TypeScript
import Link from 'next/link'
|
|
|
|
export default function Page() {
|
|
return (
|
|
<div>
|
|
<h1>Home Page</h1>
|
|
<nav>
|
|
<Link href="/runtime-error">Go to Runtime Error</Link>
|
|
<br />
|
|
<Link href="/build-error">Go to Build Error</Link>
|
|
</nav>
|
|
</div>
|
|
)
|
|
}
|