diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-06-30 23:52:06 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-06-30 23:52:06 -0700 |
| commit | 89550dc39da5ccdb7e729c1dc2b68e5075980bd4 (patch) | |
| tree | 661358270b8bded2c2f9a620d43e3e7278db87ee /middleware/src/app/page.tsx | |
| parent | fc98ffbe8feb184ba88fb805a4c3b9ad018a6167 (diff) | |
adjust newsId to map non-ascii characters
vercel limitation
Diffstat (limited to 'middleware/src/app/page.tsx')
| -rw-r--r-- | middleware/src/app/page.tsx | 13 |
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; +} |
