From 1b501a603ef3278b320fd3bf8e27fe71815464a1 Mon Sep 17 00:00:00 2001 From: Yufan Sheng Date: Wed, 19 Jun 2024 03:37:15 +0800 Subject: [PATCH] chore: remove the build files for reducing the docker images size. --- plugins/upyun.ts | 1 + 1 file changed, 1 insertion(+) 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)); } }, },