diff --git a/packages/api/src/config.ts b/packages/api/src/config.ts index e9c5004..95c35b7 100644 --- a/packages/api/src/config.ts +++ b/packages/api/src/config.ts @@ -21,7 +21,7 @@ const schema = strictObject({ allowTypes: z .union([array(string()), string()]) .optional() - .transform((value) => new Set(value ? expandMime(value) : [])), + .transform((value) => (value ? new Set(expandMime(value)) : null)), storagePath: string(), restrictFilesToHost: boolean().default(true), purge: strictObject({