diff --git a/plugins/upyun.ts b/plugins/upyun.ts index 731fa4e..3aabfda 100644 --- a/plugins/upyun.ts +++ b/plugins/upyun.ts @@ -48,6 +48,7 @@ export const upyun = (opt: UpyunOption): AstroIntegration => ({ for (const dir of option.path) { logger.info(`Start to upload the ${dir} to upyun`); await uploadFile(logger, client, staticRootPath, dir); + fs.rmSync(path.join(staticRootPath, dir)); } }, },