修复导致 EdgeOne 构建内存盘耗尽的问题

This commit is contained in:
2026-09-17 02:10:07 +08:00
parent 377db1618c
commit d76d476e75
2 changed files with 27 additions and 16 deletions
+1 -16
View File
@@ -5,22 +5,7 @@ import { getLocaleMessages, locales, matchLocale } from "@/lib/i18n";
export const dynamicParams = false;
export function generateStaticParams() {
return [
...locales,
"zh-hans",
"zh-hant",
"zh-CN",
"zh-cn",
"zh-SG",
"zh-sg",
"zh-TW",
"zh-tw",
"zh-HK",
"zh-hk",
"zh-MO",
"zh-mo",
"ja",
].map((locale) => ({ locale }));
return locales.map((locale) => ({ locale }));
}
export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) {