mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
Merge pull request #36 from hamster1963/vercel-optimization
Vercel optimization
This commit is contained in:
commit
ba9ba92271
@ -37,6 +37,9 @@ export const viewport: Viewport = {
|
|||||||
userScalable: false,
|
userScalable: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// optimization: force static for vercel
|
||||||
|
export const dynamic = process.env.VERCEL ? "force-static" : "auto";
|
||||||
|
|
||||||
export async function generateStaticParams() {
|
export async function generateStaticParams() {
|
||||||
return locales.map((locale) => ({ locale }));
|
return locales.map((locale) => ({ locale }));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user