Browse Source

fix(playwright): NC_ATTACHMENT_FIELD_SIZE env variable now used for setting attachment field size and field size now defaulted to 20MB from 150MB

pull/4538/head
Muhammed Mustafa 2 years ago
parent
commit
94d9417e30
  1. 6
      packages/nocodb/src/lib/constants/index.ts

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

@ -1,5 +1,5 @@
export const NC_LICENSE_KEY = 'nc-license-key';
export const NC_APP_SETTINGS = 'nc-app-settings';
export const NC_FILE_FIELD_SIZE = process.env['NC_FILE_FIELD_SIZE']
? Number(process.env['NC_FILE_FIELD_SIZE'])
: 250 * 1024 * 1024; // 250 MB
export const NC_FILE_FIELD_SIZE = process.env['NC_ATTACHMENT_FIELD_SIZE']
? Number(process.env['NC_ATTACHMENT_FIELD_SIZE'])
: 20 * 1024 * 1024; // 20 MB

Loading…
Cancel
Save