🎥 Make videos programmatically with React
lambda still args.slice & error msg
Patric Salvisberge84dc2401622
diff --git a/packages/lambda/src/cli/commands/still.ts b/packages/lambda/src/cli/commands/still.tsindex 8c473399f1..2cc128fb14 100644--- a/packages/lambda/src/cli/commands/still.ts+++ b/packages/lambda/src/cli/commands/still.ts@@ -60,6 +60,13 @@ export const stillCommand = async (args: string[], remotionRoot: string) => {Log.info('No compositions passed. Fetching compositions...');validateServeUrl(serveUrl);++ if (!serveUrl.startsWith('https://')) {+ throw Error(+ 'Passing the short-hand serveURL without composition name is currently not supported.\n Make sure to pass a composition name after the short-hand serveURL or pass the complete serveURL without composition name to get to choose between all compositions.'+ );+ }+const server = await RenderInternals.prepareServer({concurrency: 1,indent: false,@@ -71,7 +78,7 @@ export const stillCommand = async (args: string[], remotionRoot: string) => {const {compositionId} =await CliInternals.getCompositionWithDimensionOverride({- args,+ args: args.slice(1),compositionIdFromUi: null,indent: false,serveUrlOrWebpackUrl: serveUrl,