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 = ({