File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
apps/website/src/app/[locale]
examples/nextjs-15-app/src/app/[locale] Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
import type { FC , PropsWithChildren } from 'react' ;
2
2
3
+ export { generateStaticParams } from 'next-intlayer' ;
3
4
export { generateMetadata } from './metadata' ;
4
5
5
6
export const dynamic = 'force-static' ;
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import type { Metadata } from 'next';
5
5
import type { LocalPromiseParams , NextLayoutIntlayer } from 'next-intlayer' ;
6
6
import localFont from 'next/font/local' ;
7
7
8
+ export { generateStaticParams } from 'next-intlayer' ;
9
+
8
10
const geistSans = localFont ( {
9
11
src : '../fonts/GeistVF.woff' ,
10
12
variable : '--font-geist-sans' ,
@@ -41,14 +43,15 @@ export const generateMetadata = async ({
41
43
description,
42
44
} ;
43
45
} ;
46
+ export const dynamic = 'force-static' ;
44
47
45
48
const LocaleLayout : NextLayoutIntlayer = async ( { children, params } ) => {
46
49
const { locale } = await params ;
47
50
48
51
return (
49
52
< IntlayerProvider locale = { locale } >
50
53
< html lang = { locale } dir = { getHTMLTextDir ( locale ) } >
51
- < header className = "fixed top-5 w-full flex justify-end px-10" >
54
+ < header className = "fixed top-5 flex w-full justify-end px-10" >
52
55
< LocaleSwitcher />
53
56
</ header >
54
57
< body
You can’t perform that action at this time.
0 commit comments