Increase JSON payload limit to 5MB for API requests (#10287)

- Add jsonLimit: 5MB to bodyParser configuration in API routes
- Fixes issue with 413 'request entity too large' errors when uploading large documents via API
- Resolves #10239

Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>
This commit is contained in:
codegen-sh[bot] authored and GitHub committed 2025-10-02 06:49:25 -04:00
1 parent b69feb50a7
commit 1aa05b797c
1 file changed
+1
+1
View File
@@ -60,6 +60,7 @@ api.use(
),
maxFieldsSize: 10 * 1024 * 1024,
},
jsonLimit: 5 * 1024 * 1024, // 5MB limit for JSON payloads
})
);
api.use(coalesceBody());