Skip to content

Commit

Permalink
Static
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 4, 2023
1 parent db82199 commit d8f0f7e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion apps/website/src/app/[locale]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
import { StartPage } from "@/components/startpage";
import { getStaticParams } from "@/locales/server";
import { setStaticParamsLocale } from "next-international/server";

export function generateStaticParams() {
return getStaticParams();
}

export default function Page({
params: { locale },
}: {
params: { locale: string };
}) {
setStaticParamsLocale(locale);

export default function Page() {
return <StartPage />;
}

0 comments on commit d8f0f7e

Please sign in to comment.