diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-27 22:37:06 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-03-27 22:37:06 +0000 |
| commit | 5b0f60c15b5198684673288cffe33a0630a9d44f (patch) | |
| tree | bc082a828c388be962e1dac0d8652df55dc52250 /apps/web/app | |
| parent | 82da56298eff9c882584b06922bd4de3e4544957 (diff) | |
| download | karakeep-5b0f60c15b5198684673288cffe33a0630a9d44f.tar.zst | |
feature: Change maximum asset size to be configurable. Fixes #33
Diffstat (limited to 'apps/web/app')
| -rw-r--r-- | apps/web/app/api/assets/route.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/web/app/api/assets/route.ts b/apps/web/app/api/assets/route.ts index 838bcce1..0bb2f778 100644 --- a/apps/web/app/api/assets/route.ts +++ b/apps/web/app/api/assets/route.ts @@ -11,7 +11,7 @@ const SUPPORTED_ASSET_TYPES = new Set([ "image/webp", ]); -const MAX_UPLOAD_SIZE_BYTES = 4 * 1024 * 1024; +const MAX_UPLOAD_SIZE_BYTES = serverConfig.maxAssetSizeMb * 1024 * 1024; export const dynamic = "force-dynamic"; export async function POST(request: Request) { |
