allow emergency server build without typecheck

This commit is contained in:
134 2026-06-12 16:00:45 +08:00
parent 7963a916cb
commit d24eedc578

View File

@ -7,6 +7,9 @@ const nextConfig: NextConfig = {
// 外部包配置(Next.js 16+)
serverExternalPackages: ["sharp"],
transpilePackages: ["@sparkjsdev/spark"],
typescript: {
ignoreBuildErrors: process.env.NEXT_IGNORE_BUILD_TYPECHECK === "1",
},
// 实验性功能:增加代理请求体大小限制以支持大文件上传(视频等)
experimental: {
proxyClientMaxBodySize: "500mb", // 代理/中间件请求体限制