File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ import {
23
23
BLOG_FEEDS ,
24
24
BLOGS_WITHOUT_FEED ,
25
25
CALENDAR_DISPLAY_COUNT ,
26
- LOCALES_CODES ,
27
26
RSS_DISPLAY_COUNT ,
28
27
} from "@/lib/constants"
29
28
30
29
import HomePage from "./_components/home"
31
30
31
+ import { routing } from "@/i18n/routing"
32
32
import { fetchCommunityEvents } from "@/lib/api/calendarEvents"
33
33
import { fetchEthPrice } from "@/lib/api/fetchEthPrice"
34
34
import { fetchGrowThePie } from "@/lib/api/fetchGrowThePie"
@@ -129,7 +129,11 @@ const Page = async ({ params }: { params: Promise<{ locale: Lang }> }) => {
129
129
)
130
130
}
131
131
132
- export const generateStaticParams = async ( ) => LOCALES_CODES
132
+ export async function generateStaticParams ( ) {
133
+ return routing . locales . map ( ( locale ) => ( {
134
+ locale,
135
+ } ) )
136
+ }
133
137
134
138
export async function generateMetadata ( {
135
139
params,
You can’t perform that action at this time.
0 commit comments