From f72c3d6bafadb7a796d598de80744c23e437ec1d Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Fri, 10 Nov 2023 16:45:58 +0100 Subject: [PATCH] fix: do not upload twice gzipped files --- src/commands/deploy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/deploy.ts b/src/commands/deploy.ts index 36063d2..191e820 100644 --- a/src/commands/deploy.ts +++ b/src/commands/deploy.ts @@ -198,7 +198,7 @@ const listFiles = async ({ const sourceFiles = listSourceFiles({sourceAbsolutePath, ignore}); const compressedFiles = await gzipFiles({sourceFiles, gzip}); - const files = [...sourceFiles, ...compressedFiles]; + const files = [...sourceFiles, ...compressedFiles.filter((file) => !sourceFiles.includes(file))]; // TODO: brotli and zlib naive const mapEncodingType = ({