From 6593ab561aee7f3c5e83b6d1ff111e6ddddae7bd Mon Sep 17 00:00:00 2001 From: LUIS NOVO Date: Fri, 9 Jan 2026 20:18:06 -0300 Subject: [PATCH] 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 --- frontend/next.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/next.config.ts b/frontend/next.config.ts index bed1d03..371c1a7 100644 --- a/frontend/next.config.ts +++ b/frontend/next.config.ts @@ -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