Increase the max file size for Functions code editor to 20MB (#41005)

fix: increase max file size in function code editor to 20mb
This commit is contained in:
Lakshan Perera authored and GitHub committed 2025-12-04 05:23:56 +11:00
1 parent 73c834001c
commit 380dfbc91d
1 file changed
+4 -1
@@ -33,7 +33,10 @@ export async function getEdgeFunctionBody(
if (!data || !boundary) return { files: [] }
for await (let part of parseMultipartStream(data, { boundary })) {
for await (let part of parseMultipartStream(data, {
boundary,
maxFileSize: 20 * 1024 * 1024,
})) {
if (part.isFile) {
files.push({
name: part.filename,