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.
2 parents 3610972 + d00e3c4 commit a5a75d9Copy full SHA for a5a75d9
app/[locale]/layer-2/page.tsx
@@ -20,6 +20,7 @@ import { BASE_TIME_UNIT } from "@/lib/constants"
20
21
import Layer2Page from "./_components/layer-2"
22
23
+import { routing } from "@/i18n/routing"
24
import { fetchGrowThePie } from "@/lib/api/fetchGrowThePie"
25
import { fetchL2beat } from "@/lib/api/fetchL2beat"
26
@@ -79,6 +80,14 @@ const Page = async ({ params }: { params: Promise<{ locale: Lang }> }) => {
79
80
)
81
}
82
83
+export async function generateStaticParams() {
84
+ return routing.locales.map((locale) => ({
85
+ locale,
86
+ }))
87
+}
88
+
89
+export const dynamicParams = false
90
91
export async function generateMetadata({
92
params,
93
}: {
0 commit comments