From 89550dc39da5ccdb7e729c1dc2b68e5075980bd4 Mon Sep 17 00:00:00 2001
From: Pinapelz <yukais@pinapelz.com>
Date: Mon, 30 Jun 2025 23:52:06 -0700
Subject: adjust newsId to map non-ascii characters

vercel limitation
---
 middleware/src/app/page.tsx | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 middleware/src/app/page.tsx

(limited to 'middleware/src/app/page.tsx')

diff --git a/middleware/src/app/page.tsx b/middleware/src/app/page.tsx
new file mode 100644
index 0000000..21fd19b
--- /dev/null
+++ b/middleware/src/app/page.tsx
@@ -0,0 +1,13 @@
+"use client";
+import { useEffect } from 'react';
+
+export default function RedirectPage() {
+  useEffect(() => {
+    const mainNewsUrl = process.env.NEXT_PUBLIC_MAIN_NEWS_URL;
+    if (mainNewsUrl) {
+      window.location.href = mainNewsUrl;
+    }
+  }, []);
+
+  return null;
+}
-- 
cgit v1.2.3

