diff --git a/package.json b/package.json index e89065d..56118cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "astro-uploader", - "version": "1.2.0", + "version": "1.2.1", "description": "A uploader for uploading the Astro generated files through the S3 API.", "keywords": ["Astro", "S3", "withastro", "opendal"], "bugs": { diff --git a/src/index.ts b/src/index.ts index dfdb4c1..81f32b0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -57,14 +57,14 @@ const S3Options = z path: z.string(), keep: z.boolean().optional(), recursive: z.boolean().optional(), - override: z.boolean(), + override: z.boolean().optional(), }), ]), ) .min(1), - keep: z.boolean().default(false), - recursive: z.boolean().default(true), - override: z.boolean().default(false), + keep: z.boolean().optional().default(false), + recursive: z.boolean().optional().default(true), + override: z.boolean().optional().default(false), region: z.string().min(1).default('auto'), endpoint: z.string().url().optional(), bucket: z.string().min(1),