Fix coming soon locale caching
CI / quality (push) Waiting to run

This commit is contained in:
MOH
2026-03-15 04:46:44 +01:00
parent 3eb9238268
commit dfed5ec831
+6
View File
@@ -1,4 +1,5 @@
import type { Metadata } from "next";
import { unstable_noStore as noStore } from "next/cache";
import { Sparkles } from "lucide-react";
import { getTranslations } from "next-intl/server";
@@ -15,7 +16,11 @@ type ComingSoonPageProps = {
}>;
};
export const dynamic = "force-dynamic";
export const revalidate = 0;
export async function generateMetadata({ params }: ComingSoonPageProps): Promise<Metadata> {
noStore();
const { locale } = await params;
const localeKey = resolveLocale(locale);
const t = await getTranslations({ locale: localeKey, namespace: "comingSoon" });
@@ -33,6 +38,7 @@ export async function generateMetadata({ params }: ComingSoonPageProps): Promise
export default async function ComingSoonPage({
params,
}: ComingSoonPageProps) {
noStore();
const { locale } = await params;
const localeKey = resolveLocale(locale);
const [t, siteSettings] = await Promise.all([