fix: edge runtime

This commit is contained in:
hamster1963 2024-10-03 00:30:49 +08:00
parent 32ecbb0819
commit 6520fbd1fc

View File

@ -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 }));
}