fix favicon delivery and cache invalidation

This commit is contained in:
MOH
2026-03-07 19:19:58 +01:00
parent cd6ec7fa78
commit 3d1976a7a5
8 changed files with 193 additions and 7 deletions
+8
View File
@@ -1,11 +1,17 @@
import type { Metadata } from "next";
import { unstable_noStore as noStore } from "next/cache";
import { getLocale } from "next-intl/server";
import { ThemeProvider } from "@/components/theme-provider";
import { buildAppMetadata } from "@/lib/metadata";
import { getDirection } from "@/lib/locale";
import "./globals.css";
export const dynamic = "force-dynamic";
export const revalidate = 0;
export async function generateMetadata(): Promise<Metadata> {
noStore();
return buildAppMetadata();
}
@@ -14,6 +20,8 @@ export default async function RootLayout({
}: Readonly<{
children: React.ReactNode;
}>) {
noStore();
const locale = await getLocale().catch(() => "de");
return (