fix: use correct Next.js 16 config for body size limit
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
db070f8a37
commit
077451de2f
@ -6,15 +6,11 @@ const nextConfig: NextConfig = {
|
||||
typescript: {
|
||||
ignoreBuildErrors: true, // 临时禁用类型检查以加快开发
|
||||
},
|
||||
// 增加请求体大小限制以支持大文件上传(视频等)
|
||||
serverActions: {
|
||||
bodySizeLimit: "500mb",
|
||||
},
|
||||
// 实验性功能:增加中间件和代理请求体大小限制
|
||||
// 外部包配置(Next.js 16+)
|
||||
serverExternalPackages: ["sharp"],
|
||||
// 实验性功能:增加代理请求体大小限制以支持大文件上传(视频等)
|
||||
experimental: {
|
||||
serverComponentsExternalPackages: ["sharp"],
|
||||
middlewareClientMaxBodySize: "500mb", // 中间件请求体限制
|
||||
proxyClientMaxBodySize: "500mb", // 代理请求体限制
|
||||
proxyClientMaxBodySize: "500mb", // 代理/中间件请求体限制
|
||||
},
|
||||
images: {
|
||||
remotePatterns: [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user