From 5540f56e5f17da719ef266990d7edb05df0ab13a Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Wed, 9 Oct 2024 14:16:11 +0800 Subject: [PATCH] fix: disable vercel cache --- app/[locale]/(main)/[id]/page.tsx | 3 +-- app/[locale]/layout.tsx | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/[locale]/(main)/[id]/page.tsx b/app/[locale]/(main)/[id]/page.tsx index a87df19..bef3ff5 100644 --- a/app/[locale]/(main)/[id]/page.tsx +++ b/app/[locale]/(main)/[id]/page.tsx @@ -1,7 +1,6 @@ import { NetworkChartClient } from "../ClientComponents/NetworkChart"; -export const dynamic = "force-dynamic" -export const revalidate = 0 + export default function Page({ params }: { params: { id: string } }) { return ( diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx index 3e21889..b21c7f3 100644 --- a/app/[locale]/layout.tsx +++ b/app/[locale]/layout.tsx @@ -37,8 +37,6 @@ export const viewport: Viewport = { userScalable: false, }; -// optimization: force static for vercel -export const dynamic = process.env.VERCEL ? "force-static" : "auto"; export async function generateStaticParams() { return locales.map((locale) => ({ locale }));