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: {
|
typescript: {
|
||||||
ignoreBuildErrors: true, // 临时禁用类型检查以加快开发
|
ignoreBuildErrors: true, // 临时禁用类型检查以加快开发
|
||||||
},
|
},
|
||||||
// 增加请求体大小限制以支持大文件上传(视频等)
|
// 外部包配置(Next.js 16+)
|
||||||
serverActions: {
|
serverExternalPackages: ["sharp"],
|
||||||
bodySizeLimit: "500mb",
|
// 实验性功能:增加代理请求体大小限制以支持大文件上传(视频等)
|
||||||
},
|
|
||||||
// 实验性功能:增加中间件和代理请求体大小限制
|
|
||||||
experimental: {
|
experimental: {
|
||||||
serverComponentsExternalPackages: ["sharp"],
|
proxyClientMaxBodySize: "500mb", // 代理/中间件请求体限制
|
||||||
middlewareClientMaxBodySize: "500mb", // 中间件请求体限制
|
|
||||||
proxyClientMaxBodySize: "500mb", // 代理请求体限制
|
|
||||||
},
|
},
|
||||||
images: {
|
images: {
|
||||||
remotePatterns: [
|
remotePatterns: [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user