Merge pull request #405 from lfnovo/fix/nextjs-proxy-body-size-limit

fix: increase Next.js proxy body size limit for file uploads
This commit is contained in:
Luis Novo 2026-01-09 20:24:46 -03:00 committed by GitHub
commit 8d6d615f2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,13 @@ const nextConfig: NextConfig = {
// Enable standalone output for optimized Docker deployment
output: "standalone",
// Experimental features
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',
},
// API Rewrites: Proxy /api/* requests to FastAPI backend
// This simplifies reverse proxy configuration - users only need to proxy to port 8502
// Next.js handles internal routing to the API backend on port 5055