Merge pull request #406 from lfnovo/fix/next-config-typescript-types

fix: add type assertion for experimental proxyClientMaxBodySize config
This commit is contained in:
Luis Novo 2026-01-09 20:50:56 -03:00 committed by GitHub
commit 478ca299d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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