Migrate to a monorepo structure (#2909)
This commit is contained in:
12
packages/twenty-server/src/constants/settings/index.ts
Normal file
12
packages/twenty-server/src/constants/settings/index.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { Settings } from './interfaces/settings.interface';
|
||||
|
||||
export const settings: Settings = {
|
||||
storage: {
|
||||
imageCropSizes: {
|
||||
'profile-picture': ['original'],
|
||||
'workspace-logo': ['original'],
|
||||
'person-picture': ['original'],
|
||||
},
|
||||
maxFileSize: '10MB',
|
||||
},
|
||||
};
|
||||
@ -0,0 +1,14 @@
|
||||
import { FileFolder } from 'src/core/file/interfaces/file-folder.interface';
|
||||
|
||||
import { ShortCropSize } from 'src/utils/image';
|
||||
|
||||
type ValueOfFileFolder = `${FileFolder}`;
|
||||
|
||||
export interface Settings {
|
||||
storage: {
|
||||
imageCropSizes: {
|
||||
[key in ValueOfFileFolder]?: ShortCropSize[];
|
||||
};
|
||||
maxFileSize: `${number}MB`;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user