From fdebd69904e3b225dde1182de2fe9938344abbf2 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Tue, 1 Jul 2025 10:10:23 -0700 Subject: add not-found page --- middleware/src/app/[gameName]/page.tsx | 2 +- middleware/src/app/not-found.tsx | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 middleware/src/app/not-found.tsx (limited to 'middleware/src/app') diff --git a/middleware/src/app/[gameName]/page.tsx b/middleware/src/app/[gameName]/page.tsx index 76d883b..d4e7b51 100644 --- a/middleware/src/app/[gameName]/page.tsx +++ b/middleware/src/app/[gameName]/page.tsx @@ -89,7 +89,7 @@ export default async function GamePage({ } const redirectUrl = - postId && mainNewsUrl ? `${mainNewsUrl}/game/${gameName}#${postId}` : null; + postId && mainNewsUrl ? `${mainNewsUrl}/game/${gameName}#${postId}` : mainNewsUrl; return (
diff --git a/middleware/src/app/not-found.tsx b/middleware/src/app/not-found.tsx new file mode 100644 index 0000000..cbe480e --- /dev/null +++ b/middleware/src/app/not-found.tsx @@ -0,0 +1,22 @@ +import kairosImage from './kairos.png' + +export default function NotFound() { + return ( +
+
+

573 UPDATES

+ Updates image + <> +
+ + you seem lost... lets go back home + + +
+
+ ); +} -- cgit v1.2.3