From 8432eb1cc05f2e36d561d1628ef68c79e3feee0b Mon Sep 17 00:00:00 2001 From: Paul Bailey Date: Wed, 3 Dec 2025 01:31:16 +0000 Subject: [PATCH] Add error and loading pages, remove experimental SSR --- app/error.tsx | 44 ++++++++++++-------------------------------- app/loading.tsx | 31 +++++++++++-------------------- next.config.js | 3 --- 3 files changed, 23 insertions(+), 55 deletions(-) diff --git a/app/error.tsx b/app/error.tsx index a4906a4..95c1e58 100644 --- a/app/error.tsx +++ b/app/error.tsx @@ -1,8 +1,5 @@ 'use client' -import { useEffect } from 'react' -import { AlertTriangle } from 'lucide-react' - export default function Error({ error, reset, @@ -10,37 +7,20 @@ export default function Error({ error: Error & { digest?: string } reset: () => void }) { - useEffect(() => { - console.error('Page error:', error) - }, [error]) - return ( -
-
-
- -
-

- Something went wrong -

-

- {error.message || 'We encountered an unexpected error. Please try again.'} +

+
+

Something went wrong!

+

+ There was an error loading this page. Please try again.

-
- - -
+
) -} +} \ No newline at end of file diff --git a/app/loading.tsx b/app/loading.tsx index d276757..6f41504 100644 --- a/app/loading.tsx +++ b/app/loading.tsx @@ -1,24 +1,15 @@ -import { ListCardSkeleton } from '@/components/SkeletonLoader' - export default function Loading() { return ( -
-
-
-
+
+
+
+
+
+
+
+
+
- - {/* Global Search Skeleton */} -
-
-
- -
- - - - -
-
+
) -} +} \ No newline at end of file diff --git a/next.config.js b/next.config.js index f41d225..a54e766 100644 --- a/next.config.js +++ b/next.config.js @@ -9,9 +9,6 @@ const nextConfig = { productionBrowserSourceMaps: false, trailingSlash: false, poweredByHeader: false, - experimental: { - ssr: false, - }, } module.exports = nextConfig \ No newline at end of file