Browse Source

fix(nocodb): handle NaN case in NC_ATTACHMENT_FIELD_SIZE

pull/4931/head
Wing-Kam Wong 2 years ago
parent
commit
b1735209a5
  1. 5
      packages/nocodb/src/lib/constants/index.ts

5
packages/nocodb/src/lib/constants/index.ts

@ -1,5 +1,4 @@
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

Loading…
Cancel
Save