mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: edge runtime
This commit is contained in:
parent
32ecbb0819
commit
6520fbd1fc
@ -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 }));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user