Browse Source

fix(nocodb): handle undefined env for NC_ATTACHMENT_FIELD_SIZE

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

3
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

Loading…
Cancel
Save