@@ -1,4 +1,5 @@
|
|||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
|
import { unstable_noStore as noStore } from "next/cache";
|
||||||
import { Sparkles } from "lucide-react";
|
import { Sparkles } from "lucide-react";
|
||||||
import { getTranslations } from "next-intl/server";
|
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> {
|
export async function generateMetadata({ params }: ComingSoonPageProps): Promise<Metadata> {
|
||||||
|
noStore();
|
||||||
const { locale } = await params;
|
const { locale } = await params;
|
||||||
const localeKey = resolveLocale(locale);
|
const localeKey = resolveLocale(locale);
|
||||||
const t = await getTranslations({ locale: localeKey, namespace: "comingSoon" });
|
const t = await getTranslations({ locale: localeKey, namespace: "comingSoon" });
|
||||||
@@ -33,6 +38,7 @@ export async function generateMetadata({ params }: ComingSoonPageProps): Promise
|
|||||||
export default async function ComingSoonPage({
|
export default async function ComingSoonPage({
|
||||||
params,
|
params,
|
||||||
}: ComingSoonPageProps) {
|
}: ComingSoonPageProps) {
|
||||||
|
noStore();
|
||||||
const { locale } = await params;
|
const { locale } = await params;
|
||||||
const localeKey = resolveLocale(locale);
|
const localeKey = resolveLocale(locale);
|
||||||
const [t, siteSettings] = await Promise.all([
|
const [t, siteSettings] = await Promise.all([
|
||||||
|
|||||||
Reference in New Issue
Block a user