Skip to content

🎥 Make videos programmatically with React

`@remotion/lambda`: `npx remotion still` does not log `null` when there are no artifacts

Jonny Burger925a6a644b0e
diff --git a/packages/lambda/src/cli/commands/still.ts b/packages/lambda/src/cli/commands/still.ts
index 61b2725a24..93c9f8a90d 100644
--- a/packages/lambda/src/cli/commands/still.ts
+++ b/packages/lambda/src/cli/commands/still.ts
@@ -271,13 +271,16 @@ export const stillCommand = async (
),
);
- Log.info(
- {
- indent: false,
- logLevel,
- },
- makeArtifactProgress(res.artifacts),
- );
+ const artifactProgress = makeArtifactProgress(res.artifacts);
+ if (artifactProgress) {
+ Log.info(
+ {
+ indent: false,
+ logLevel,
+ },
+ makeArtifactProgress(res.artifacts),
+ );
+ }
Log.info(
{indent: false, logLevel},