File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed
Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ 'use client'
2+
3+ import { SITE_CONFIG } from '@/app.config' ;
4+ import { useEffect } from 'react' ;
5+
6+ export default function EnRedirectPage ( ) {
7+ useEffect ( ( ) => {
8+ window . location . replace ( SITE_CONFIG . secondaryDomain ) ;
9+ } , [ ] ) ;
10+
11+ return (
12+ < main className = "flex min-h-screen items-center justify-center bg-background" >
13+ < div className = "text-center" >
14+ < p className = "text-sm text-muted-foreground" > Redirecting to RustFS…</ p >
15+ </ div >
16+ </ main >
17+ ) ;
18+ }
19+
Original file line number Diff line number Diff line change 1+ 'use client'
2+
3+ import { SITE_CONFIG } from '@/app.config' ;
4+ import { useEffect } from 'react' ;
5+
6+ export default function ZhRedirectPage ( ) {
7+ useEffect ( ( ) => {
8+ window . location . replace ( SITE_CONFIG . primaryDomain ) ;
9+ } , [ ] ) ;
10+
11+ return (
12+ < main className = "flex min-h-screen items-center justify-center bg-background" >
13+ < div className = "text-center" >
14+ < p className = "text-sm text-muted-foreground" > 正在跳转到 RustFS 中文站…</ p >
15+ </ div >
16+ </ main >
17+ ) ;
18+ }
19+
You can’t perform that action at this time.
0 commit comments