Skip to content

Commit e68529e

Browse files
committed
Replace language redirect with static redirect
Removed the LanguageRedirect component and updated HomePage to use a static redirect to /en/docs. This simplifies the language selection logic by always redirecting to English documentation.
1 parent 9e1a6bc commit e68529e

2 files changed

Lines changed: 3 additions & 53 deletions

File tree

packages/site/app/page.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
import { i18n } from '@/lib/i18n';
2-
import { LanguageRedirect } from '@/components/language-redirect';
1+
import { redirect, notFound } from 'next/navigation';
32

43
export default function HomePage() {
5-
return (
6-
<LanguageRedirect
7-
availableLanguages={i18n.languages as string[]}
8-
defaultLanguage={i18n.defaultLanguage}
9-
/>
10-
);
4+
5+
redirect(`/en/docs`);
116
}

packages/site/components/language-redirect.tsx

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)