diff --git a/src/app/[locale]/not-found.tsx b/src/app/[locale]/not-found.tsx index c363b3b..ad040e8 100644 --- a/src/app/[locale]/not-found.tsx +++ b/src/app/[locale]/not-found.tsx @@ -1,5 +1,21 @@ +"use client" +import { jgs7 } from "@/fonts" +import Image from "next/image" export default function NotFound() { - return
Not Found
+ return ( +
+
+
+ 404 + Page not found +
+
+ Loading... +
+
+
+ ) } + diff --git a/src/app/[locale]/pages/[slug]/error.tsx b/src/app/[locale]/pages/[slug]/error.tsx new file mode 100644 index 0000000..247aeb2 --- /dev/null +++ b/src/app/[locale]/pages/[slug]/error.tsx @@ -0,0 +1,37 @@ +'use client' + +import { useEffect } from "react" + +export default function Error({ + error, + reset, +}: { + error: Error & { digest?: string } + reset: () => void +}) { + + useEffect(() => { + // Log the error to an error reporting service + console.error(error) + }, [error]) + + return ( +
+
+

+ {error.name} +

+

{error.message}

+
+ +
+
+
+ ) +}