From 6520fbd1fc243b9ea1076c12309695ccc9340d57 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Thu, 3 Oct 2024 00:30:49 +0800 Subject: [PATCH] fix: edge runtime --- app/[locale]/layout.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx index 3e21889..cb7a29f 100644 --- a/app/[locale]/layout.tsx +++ b/app/[locale]/layout.tsx @@ -40,6 +40,8 @@ export const viewport: Viewport = { // optimization: force static for vercel export const dynamic = process.env.VERCEL ? "force-static" : "auto"; +export const runtime = 'edge'; + export async function generateStaticParams() { return locales.map((locale) => ({ locale })); }