feat: improve frontend image

This commit is contained in:
swve 2024-04-20 11:51:01 +02:00
parent a6742d17c1
commit d5791d99d5
9 changed files with 343 additions and 604 deletions

View file

@ -1,24 +0,0 @@
'use client'
import * as Sentry from '@sentry/nextjs'
import NextError from 'next/error'
import { useEffect } from 'react'
export default function GlobalError({
error,
}: {
error: Error & { digest?: string }
}) {
useEffect(() => {
Sentry.captureException(error)
}, [error])
return (
<html>
<body>
{/* This is the default Next.js error component but it doesn't allow omitting the statusCode property yet. */}
<NextError statusCode={undefined as any} />
</body>
</html>
)
}