nezha_dash/app/[locale]/(main)/page.tsx
2024-10-21 00:17:41 +08:00

20 lines
475 B
TypeScript

import ServerList from "@/components/ServerList";
import ServerOverview from "@/components/ServerOverview";
import { unstable_setRequestLocale } from "next-intl/server";
export const runtime = 'edge';
export default function Home({
params: { locale },
}: {
params: { locale: string };
}) {
unstable_setRequestLocale(locale);
return (
<div className="mx-auto grid w-full max-w-5xl gap-4 md:gap-6">
<ServerOverview />
<ServerList />
</div>
);
}