Skip to content

Commit

Permalink
Added GSP to Area Page
Browse files Browse the repository at this point in the history
  • Loading branch information
Shanks0465 committed Aug 28, 2024
1 parent fc69c72 commit 39bfd0c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontend/src/app/areas/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ const fetchAreaData = async (slug: string) => {
}
};

export async function generateStaticParams() {
const areas = ["xlit", "nmt", "asr", "tts", "llm"];

return areas.map((area) => ({
slug: area,
}));
}

export default function Areas() {
const params = useParams();
const slug = params.slug as keyof typeof areaInfo;
Expand Down

0 comments on commit 39bfd0c

Please sign in to comment.