v84 was created by restoring v81
问题在于 Noto_Sans_SC 字体的导入和使用。这是一个 Turbopack 与 Google 字体集成的兼容性问题。最简单的解决方案是移除 Google 字体,改用系统字体或其他兼容方案。
已移除 Noto Sans SC Google 字体导入和相关配置,改用 Tailwind 默认的系统字体堆栈。这样可以避免 Turbopack 字体模块解析错误,同时保持页面显示正常(系统字体在中文环境下会自动使用本地合适的字体如微软雅黑、苹果字体等)。打包时应该不再报错。
Collecting page data using 10 workers .Error: export const dynamic = "force-static"/export const revalidate not configured on route "/api/download-db" with "output: export". See more info here: https://nextjs.org/docs/advanced-features/static-html-export
at module evaluation (.next/server/chunks/[root-of-the-server]__4dcec5ea._.js:753:542)
at instantiateModule (.next/server/chunks/[turbopack]_runtime.js:740:9)
at instantiateRuntimeModule (.next/server/chunks/[turbopack]_runtime.js:768:12)
at getOrInstantiateRuntimeModule (.next/server/chunks/[turbopack]_runtime.js:781:12)
at Object.m (.next/server/chunks/[turbopack]_runtime.js:790:18)
at Object.<anonymous> (.next/server/app/api/download-db/route.js:5:3)
Build error occurred
Error: Failed to collect page data for /api/download-db
at ignore-listed frames {
type: 'Error'
}
ELIFECYCLE Command failed with exit code 1.
打包还是出现这个问题