Merge pull request #406 from lfnovo/fix/next-config-typescript-types
fix: add type assertion for experimental proxyClientMaxBodySize config
This commit is contained in:
commit
478ca299d1
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue