We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07586da commit df6c4cdCopy full SHA for df6c4cd
app/countries/[orderBy]/[page]/layout.tsx
@@ -27,6 +27,16 @@ export async function generateMetadata({ params }: CountriesLayoutProps): Promis
27
};
28
}
29
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
+
40
export default async function CountriesLayout({ children, params }: CountriesLayoutProps) {
41
const { orderBy } = await params;
42
0 commit comments