There was an error while loading. Please reload this page.
1 parent 3def7d8 commit 28866f7Copy full SHA for 28866f7
1 file changed
web/app/[locale]/(pages)/news/page.tsx
@@ -17,6 +17,10 @@ import NewsRoomTemplate from '@/templates/newsroom/Newsroom'
17
18
const TopicPage = dynamic(() => import('@/templates/topic/TopicPage'))
19
20
+export async function generateStaticParams() {
21
+ return Flags.HAS_NEWSROOM ? [{ locale: 'nb-NO' }, { locale: 'en-GB' }] : []
22
+}
23
+
24
export async function generateMetadata(): Promise<Metadata> {
25
const locale = await getLocale()
26
const pageSlug = newsSlug[getNameFromIso(locale)]
0 commit comments