fix: increase Next.js proxy body size limit for file uploads
Increase the proxyClientMaxBodySize from 10MB (default) to 100MB to allow larger files to be uploaded through the /api/* rewrite proxy to FastAPI. Fixes #361
This commit is contained in:
parent
24730cf757
commit
6593ab561a
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue