diff --git a/packages/env/src/index.ts b/packages/env/src/index.ts index cd2652d1a..361171c7b 100644 --- a/packages/env/src/index.ts +++ b/packages/env/src/index.ts @@ -27,8 +27,7 @@ const minioEnv = createEnv({ UNDB_MINIO_STORAGE_PORT: z .string() .optional() - .default("9000") - .transform((v) => parseInt(v, 10)), + .transform((v) => (v ? parseInt(v, 10) : undefined)), UNDB_MINIO_STORAGE_USE_SSL: z .string() .optional()