Files
decolua--9router/gitbook/app/page.js
T
wehub-resource-sync 05fcd08057
Deploy GitBook to 9router.github.io / build-deploy (push) Failing after 2s
chore: import upstream snapshot with attribution
2026-07-13 12:21:01 +08:00

27 lines
684 B
JavaScript

import { DEFAULT_LANG } from "@/constants/languages";
// Static-friendly redirect to default language (meta refresh + client script)
export const metadata = {
title: "Redirecting...",
other: {
"http-equiv:refresh": `0; url=/${DEFAULT_LANG}/`
}
};
export default function HomePage() {
const target = `/${DEFAULT_LANG}/`;
return (
<>
<script
dangerouslySetInnerHTML={{
__html: `window.location.replace("${target}");`
}}
/>
<meta httpEquiv="refresh" content={`0; url=${target}`} />
<p style={{ padding: "2rem", textAlign: "center" }}>
Redirecting to <a href={target}>{target}</a>...
</p>
</>
);
}