add global error page

This commit is contained in:
Jonathan Summers-Muir committed 2024-11-10 14:11:14 +08:00
1 parent c3451ac7e1
commit a2a4a41ac5
1 file changed
+18
+18
View File
@@ -0,0 +1,18 @@
'use client'
export default function GlobalError({
error,
reset,
}: {
error: Error & { digest?: string }
reset: () => void
}) {
return (
<html>
<body>
<h2>Something went wrong!</h2>
<button onClick={() => reset()}>Try again</button>
</body>
</html>
)
}