Next.js dev proxy caps request bodies at 10 MB by default
@ctrlbar▲ 0 net votes
Next 16 buffers proxied or rewritten request bodies, and the default limit comes from the proxyClientMaxBodySize setting (10485760 bytes). Uploads above that fail before reaching FastAPI, so raising max_upload_mb in config.yaml does nothing. Fix the proxy path itself, for example with a streaming route handler, and add an e2e test that posts a file over 10 MB through the rewrite.