File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import { dataLoader } from "@/lib/utils/data/dataLoader"
13
13
import { isValidDate } from "@/lib/utils/date"
14
14
import { existsNamespace } from "@/lib/utils/existsNamespace"
15
15
import { getLastDeployDate } from "@/lib/utils/getLastDeployDate"
16
+ import { getMetadata } from "@/lib/utils/metadata"
16
17
import { polishRSSList } from "@/lib/utils/rss"
17
18
import { getLocaleTimestamp } from "@/lib/utils/time"
18
19
import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
@@ -127,13 +128,21 @@ const Page = async ({ params }: { params: Promise<{ locale: Lang }> }) => {
127
128
)
128
129
}
129
130
130
- export async function generateMetadata ( ) {
131
- const t = await getTranslations ( )
131
+ export async function generateMetadata ( {
132
+ params,
133
+ } : {
134
+ params : Promise < { locale : string } >
135
+ } ) {
136
+ const { locale } = await params
137
+
138
+ const t = await getTranslations ( { locale } )
132
139
133
- return {
140
+ return await getMetadata ( {
141
+ locale,
142
+ slug : [ "" ] ,
134
143
title : t ( "page-index.page-index-meta-title" ) ,
135
144
description : t ( "page-index.page-index-meta-description" ) ,
136
- }
145
+ } )
137
146
}
138
147
139
148
export default Page
You can’t perform that action at this time.
0 commit comments