Skip to content

Commit 14f1005

Browse files
committed
fix: remote build compression
1 parent 779213c commit 14f1005

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cli-v3/src/deploy/buildImage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,12 @@ async function remoteBuildImage(options: DepotBuildImageOptions): Promise<BuildI
198198
"-f",
199199
"Containerfile",
200200
options.noCache ? "--no-cache" : undefined,
201-
options.useZstd
201+
...(options.useZstd
202202
? [
203203
"--output",
204204
`compression=zstd${options.compressionLevel ? `,level=${options.compressionLevel}` : ""}`,
205205
]
206-
: undefined,
206+
: []),
207207
"--platform",
208208
options.imagePlatform,
209209
options.load ? "--load" : undefined,

0 commit comments

Comments
 (0)