fix: nextjs 15+ async params for layout and page
This commit is contained in:
+2
-1
@@ -8,7 +8,8 @@ import Contact from "@/components/Contact";
|
||||
import Footer from "@/components/Footer";
|
||||
import { getDictionary } from "../dictionaries";
|
||||
|
||||
export default async function Home({ params: { lang } }: { params: { lang: string } }) {
|
||||
export default async function Home({ params }: { params: Promise<{ lang: string }> }) {
|
||||
const { lang } = await params;
|
||||
const dict = await getDictionary(lang);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user