aboutsummaryrefslogtreecommitdiffstats
path: root/middleware/src/app/page.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/src/app/page.tsx')
-rw-r--r--middleware/src/app/page.tsx13
1 files changed, 13 insertions, 0 deletions
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;
+}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage