fix: remove max upload size from settings / use env var instead to centralize the config

This commit is contained in:
Mohamed Marrouchi
2024-12-27 17:22:35 +01:00
parent bb83cd53bc
commit 99c702de17
17 changed files with 63 additions and 91 deletions

View File

@@ -23,6 +23,6 @@ export default function handler(
ssoEnabled: process.env.NEXT_PUBLIC_SSO_ENABLED === "true" || false,
maxUploadSize: process.env.UPLOAD_MAX_SIZE_IN_BYTES
? Number(process.env.UPLOAD_MAX_SIZE_IN_BYTES)
: 50 * 1024 * 1024, // 50 MB in bytes
: 20 * 1024 * 1024, // 20 MB in bytes
});
}