fix: add type assertion for experimental proxyClientMaxBodySize config

Next.js 15 accepts proxyClientMaxBodySize at runtime but TypeScript types
for ExperimentalConfig don't include it yet, causing build failures.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
LUIS NOVO 2026-01-09 20:44:43 -03:00
parent 8d6d615f2f
commit cb525148e3

View file

@ -5,11 +5,12 @@ const nextConfig: NextConfig = {
output: "standalone",
// Experimental features
// Type assertion needed: proxyClientMaxBodySize is valid in Next.js 15 but types lag behind
experimental: {
// Increase proxy body size limit for file uploads (default is 10MB)
// This allows larger files to be uploaded through the /api/* rewrite proxy to FastAPI
proxyClientMaxBodySize: '100mb',
},
} as NextConfig['experimental'],
// API Rewrites: Proxy /api/* requests to FastAPI backend
// This simplifies reverse proxy configuration - users only need to proxy to port 8502