From f124fd1e697647162a6ab2a3ca11771d5248c7c0 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Mon, 2 Jun 2025 16:49:21 -0700 Subject: [PATCH] Increase body size limit --- svelte.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/svelte.config.js b/svelte.config.js index e70e3ac..1998181 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -11,7 +11,12 @@ const config = { // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. // If your environment is not supported, or you settled on a specific environment, switch out the adapter. // See https://kit.svelte.dev/docs/adapters for more information about adapters. - adapter: adapter(), + adapter: adapter({ + // Increase body size limit to 10MB for file uploads + bodyParser: { + sizeLimit: 10485760 // 10MB in bytes + } + }), csrf: { checkOrigin: false