Skip to content

Commit 3088b16

Browse files
fix: make locale parameter optional in layout props
1 parent c87a8bd commit 3088b16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/[locale]/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function generateStaticParams() {
1616

1717
type Props = {
1818
children: React.ReactNode;
19-
params: Promise<{ locale: Locale }>;
19+
params: Promise<{ locale?: Locale }>;
2020
};
2121

2222
export async function generateMetadata({ params }: Props): Promise<Metadata> {

0 commit comments

Comments
 (0)