Increase body size limit

This commit is contained in:
Justin Edmund 2025-06-02 16:49:21 -07:00
parent 458226b2ab
commit f124fd1e69

View file

@ -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