Skip to content

Commit df6c4cd

Browse files
committed
metadata for country rankings
1 parent 07586da commit df6c4cd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/countries/[orderBy]/[page]/layout.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ export async function generateMetadata({ params }: CountriesLayoutProps): Promis
2727
};
2828
}
2929

30+
export async function generateStaticParams() {
31+
const page = '1';
32+
return [
33+
{ orderBy: 'contributions', page },
34+
{ orderBy: 'followers', page },
35+
{ orderBy: 'stars', page },
36+
{ orderBy: 'users', page },
37+
];
38+
}
39+
3040
export default async function CountriesLayout({ children, params }: CountriesLayoutProps) {
3141
const { orderBy } = await params;
3242

0 commit comments

Comments
 (0)