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
+6 -6
View File
@@ -24,9 +24,9 @@ import { CardContent } from "@/components/ui/card";
import { getLocalizedPath, resolveLocale } from "@/lib/locale";
type HomePageProps = {
params: {
params: Promise<{
locale: string;
};
}>;
};
const serviceIcons = [
@@ -41,9 +41,8 @@ const serviceIcons = [
export const dynamic = "force-dynamic";
export async function generateMetadata({
params: { locale },
}: HomePageProps): Promise<Metadata> {
export async function generateMetadata({ params }: HomePageProps): Promise<Metadata> {
const { locale } = await params;
const localeKey = resolveLocale(locale);
const [t, siteSettings] = await Promise.all([
getTranslations({ locale: localeKey, namespace: "homepage" }),
@@ -59,7 +58,8 @@ export async function generateMetadata({
});
}
export default async function HomePage({ params: { locale } }: HomePageProps) {
export default async function HomePage({ params }: HomePageProps) {
const { locale } = await params;
const localeKey = resolveLocale(locale);
const [t, marqueeSettings] = await Promise.all([
getTranslations({ locale: localeKey, namespace: "homepage" }),