🎥 Make videos programmatically with React
Should more gracefully handle case npx remotion lambda sites rm $(npx remotion lambda sites ls -q) -f where there are no functions deployed
Jonny Burgere31918609c31
diff --git a/packages/lambda/src/cli/commands/sites/ls.ts b/packages/lambda/src/cli/commands/sites/ls.tsindex 1aaea2c7d7..c1ceae52d6 100644--- a/packages/lambda/src/cli/commands/sites/ls.ts+++ b/packages/lambda/src/cli/commands/sites/ls.ts@@ -34,6 +34,11 @@ export const sitesLsSubcommand = async () => {}if (CliInternals.quietFlagProvided()) {+ if (sites.length === 0) {+ Log.info('()');+ return;+ }+return Log.info(sites.map((s) => s.id).join(' '));}diff --git a/packages/lambda/src/cli/commands/sites/rm.ts b/packages/lambda/src/cli/commands/sites/rm.tsindex 38f56e0e3a..3883fbaaed 100644--- a/packages/lambda/src/cli/commands/sites/rm.ts+++ b/packages/lambda/src/cli/commands/sites/rm.ts@@ -17,6 +17,11 @@ export const sitesRmSubcommand = async (args: string[]) => {quit(1);}+ if (args[0] === '()') {+ Log.info('No sites to remove.');+ return;+ }+const region = getAwsRegion();const deployedSites = await getSites({region,