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:
parent
8d6d615f2f
commit
cb525148e3
1 changed files with 2 additions and 1 deletions
|
|
@ -5,11 +5,12 @@ const nextConfig: NextConfig = {
|
||||||
output: "standalone",
|
output: "standalone",
|
||||||
|
|
||||||
// Experimental features
|
// Experimental features
|
||||||
|
// Type assertion needed: proxyClientMaxBodySize is valid in Next.js 15 but types lag behind
|
||||||
experimental: {
|
experimental: {
|
||||||
// Increase proxy body size limit for file uploads (default is 10MB)
|
// 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
|
// This allows larger files to be uploaded through the /api/* rewrite proxy to FastAPI
|
||||||
proxyClientMaxBodySize: '100mb',
|
proxyClientMaxBodySize: '100mb',
|
||||||
},
|
} as NextConfig['experimental'],
|
||||||
|
|
||||||
// API Rewrites: Proxy /api/* requests to FastAPI backend
|
// API Rewrites: Proxy /api/* requests to FastAPI backend
|
||||||
// This simplifies reverse proxy configuration - users only need to proxy to port 8502
|
// This simplifies reverse proxy configuration - users only need to proxy to port 8502
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue