Skip to content

Commit 28866f7

Browse files
committed
Fix build #3890
1 parent 3def7d8 commit 28866f7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

web/app/[locale]/(pages)/news/page.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ import NewsRoomTemplate from '@/templates/newsroom/Newsroom'
1717

1818
const TopicPage = dynamic(() => import('@/templates/topic/TopicPage'))
1919

20+
export async function generateStaticParams() {
21+
return Flags.HAS_NEWSROOM ? [{ locale: 'nb-NO' }, { locale: 'en-GB' }] : []
22+
}
23+
2024
export async function generateMetadata(): Promise<Metadata> {
2125
const locale = await getLocale()
2226
const pageSlug = newsSlug[getNameFromIso(locale)]

0 commit comments

Comments
 (0)