Add SEO settings and root admin save flows
CI / quality (push) Waiting to run

This commit is contained in:
MOH
2026-03-07 18:48:01 +01:00
parent f6a5a37676
commit f259dfc6bd
35 changed files with 1500 additions and 56 deletions
+8 -3
View File
@@ -11,6 +11,7 @@ import { getTranslations } from "next-intl/server";
import { Container } from "@/components/layout/container";
import { MotionFade } from "@/components/motion-fade";
import { getSiteSettings } from "@/lib/app-config";
import { buildLocalizedMetadata } from "@/lib/metadata";
import { AppCard } from "@/components/ui/app-card";
import { Button } from "@/components/ui/button";
@@ -34,13 +35,17 @@ export async function generateMetadata({
params: { locale },
}: HomePageProps): Promise<Metadata> {
const localeKey = resolveLocale(locale);
const t = await getTranslations({ locale: localeKey, namespace: "homepage" });
const [t, siteSettings] = await Promise.all([
getTranslations({ locale: localeKey, namespace: "homepage" }),
getSiteSettings(),
]);
return buildLocalizedMetadata({
return await buildLocalizedMetadata({
locale: localeKey,
pathname: "/",
title: t("heroTitle"),
title: siteSettings.locales[localeKey].siteName,
description: t("heroText"),
applyTitleTemplate: false,
});
}