From e54ed3686183d690d5abd20a79a38b2d6ffb2cfa Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Mon, 30 Sep 2024 23:37:52 +0800 Subject: [PATCH] perf: set force-static --- app/[locale]/layout.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx index f53c433..2410b08 100644 --- a/app/[locale]/layout.tsx +++ b/app/[locale]/layout.tsx @@ -37,7 +37,8 @@ export const viewport: Viewport = { userScalable: false, }; -// export const dynamic = "force-static"; +export const dynamic = "force-static"; + export async function generateStaticParams() { return locales.map((locale) => ({ locale })); }