aboutsummaryrefslogtreecommitdiffstats
path: root/middleware/src/app/page.tsx
blob: 21fd19bf7d74140ee78516804fb867472f7e4503 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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