Upgrade app to Next.js 16
CI / quality (push) Waiting to run

This commit is contained in:
MOH
2026-03-13 15:50:37 +01:00
parent f14116b56c
commit e32ac4cacb
40 changed files with 1853 additions and 1157 deletions
+4 -3
View File
@@ -9,9 +9,9 @@ import { getDirection } from "@/lib/locale";
type LocaleLayoutProps = {
children: ReactNode;
params: {
params: Promise<{
locale: string;
};
}>;
};
export const dynamic = "force-dynamic";
@@ -23,9 +23,10 @@ export function generateStaticParams() {
export default async function LocaleLayout({
children,
params: { locale },
params,
}: LocaleLayoutProps) {
noStore();
const { locale } = await params;
if (!routing.locales.includes(locale as (typeof routing.locales)[number])) {
notFound();