Increase body size limit
This commit is contained in:
parent
458226b2ab
commit
f124fd1e69
1 changed files with 6 additions and 1 deletions
|
|
@ -11,7 +11,12 @@ const config = {
|
||||||
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
|
// 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.
|
// 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.
|
// 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: {
|
csrf: {
|
||||||
checkOrigin: false
|
checkOrigin: false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue