Skip to content

Commit 2329434

Browse files
committed
fix: add static locale redirect pages
1 parent 8690386 commit 2329434

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

app/en/page.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+

app/zh/page.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+

0 commit comments

Comments
 (0)