From 971930296131af8abf1af955fa0a43cebaa516f6 Mon Sep 17 00:00:00 2001 From: nichenqin Date: Wed, 7 Aug 2024 19:30:28 +0800 Subject: [PATCH] fix: default minio port --- packages/env/src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()