@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user