mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: remove max upload size from settings / use env var instead to centralize the config
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user