mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 15:19:08 +03:00
add global error page
This commit is contained in:
1 parent
c3451ac7e1
commit
a2a4a41ac5
1 file changed
+18
@@ -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>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user