aboutsummaryrefslogtreecommitdiffstats
path: root/middleware/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/src/app')
-rw-r--r--middleware/src/app/[gameName]/page.tsx2
-rw-r--r--middleware/src/app/not-found.tsx22
2 files changed, 23 insertions, 1 deletions
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 (
<main className="main">
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 (
+ <main className="main">
+ <div className="content-wrapper">
+ <h1 className="title">573 UPDATES</h1>
+ <img
+ src={kairosImage.src}
+ alt="Updates image"
+ className="updates-image"
+ />
+ <>
+ <br/>
+ <a href="https://arcade.moekyun.me" className="redirect-link">
+ you seem lost... lets go back home
+ </a>
+ </>
+ </div>
+ </main>
+ );
+}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage