diff --git a/packages/nocodb/src/lib/constants/index.ts b/packages/nocodb/src/lib/constants/index.ts index c2fdcb32cf..193325228d 100644 --- a/packages/nocodb/src/lib/constants/index.ts +++ b/packages/nocodb/src/lib/constants/index.ts @@ -1,4 +1,3 @@ export const NC_LICENSE_KEY = 'nc-license-key'; export const NC_APP_SETTINGS = 'nc-app-settings'; -export const NC_ATTACHMENT_FIELD_SIZE = - +process.env['NC_ATTACHMENT_FIELD_SIZE'] || 20 * 1024 * 1024; // 20 MB +export const NC_ATTACHMENT_FIELD_SIZE = +(process.env['NC_ATTACHMENT_FIELD_SIZE'] || 20 * 1024 * 1024); // 20 MB