🎥 Make videos programmatically with React
document that you can pass Site ID instead
Jonny Burger039cbb08ac05
diff --git a/packages/docs/docs/lambda/cli/sites.md b/packages/docs/docs/lambda/cli/sites.mdindex 225e89e79a..dab86b2523 100644--- a/packages/docs/docs/lambda/cli/sites.md+++ b/packages/docs/docs/lambda/cli/sites.md@@ -19,6 +19,17 @@ npx remotion lambda sites create src/index.tsxBundle and upload a Remotion video to an S3 bucket.+The result will be a URL such as `https://remotionlambda-12345.s3.eu-central-1.amazonaws.com/sites/abcdef/index.html`.++You can use this "Serve URL" to render a video on Remotion Lambda using:++- The [`npx remotion lambda render`](/docs/lambda/cli/render) and [`npx remotion lambda still`](/docs/lambda/cli/still) commands+- The [`renderVideoOnLambda()`](/docs/lambda/rendervideoonlambda) and [`renderStillOnLambda()`](/docs/lambda/renderstillonlambda) functions.+- Locally using the [`renderMedia()`](/docs/renderer/rendermedia) and [`renderStill()`](/docs/renderer/renderstill) functions.+- Locally using the [`npx remotion render`](/docs/cli) and [`npx remotion still`](/docs/cli) commands++If you are rendering on Lambda, you can also pass the site Name (in this case `abcdef`) as an abbreviation.+<details><summary>Example output@@ -30,7 +41,6 @@ Example output<br/>Deployed to S3!<br/>https://remotionlambda-12345.s3.eu-central-1.amazonaws.com/sites/abcdef/index.html<br/>-</pre></details>@@ -74,7 +84,7 @@ Get a list of sites. The URL that is printed can be passed to the `render` commaExample output</summary><pre>-Site ID Bucket Size Last updated<br/>+Site Name Bucket Size Last updated<br/>pr6fwglz05 remotionlambda-abcdefg 14.7 MB 2021-12-02<br/>https://remotionlambda-abcdefg.s3.eu-central-1.amazonaws.com/sites/pr6fwglz05/index.html<br/><br/>testbed remotionlambda-abcdefg 14.7 MB 2021-12-02 <br/>diff --git a/packages/docs/docs/lambda/deploysite.md b/packages/docs/docs/lambda/deploysite.mdindex e225528bc6..9a14c523e9 100644--- a/packages/docs/docs/lambda/deploysite.md+++ b/packages/docs/docs/lambda/deploysite.md@@ -102,7 +102,16 @@ Whether webpack caching should be enabled. See [`bundle()` -> enableCaching](/doAn object with the following values:-- `serveUrl` _(string)_: The URL of the website that has been deployed. You can pass in this URL when rendering videos with Remotion Lambda.+- `serveUrl` _(string)_: An URL such as `https://remotionlambda-12345.s3.eu-central-1.amazonaws.com/sites/abcdef/index.html`.++ You can use this "Serve URL" to render a video on Remotion Lambda using:++ - The [`npx remotion lambda render`](/docs/lambda/cli/render) and [`npx remotion lambda still`](/docs/lambda/cli/still) commands+ - The [`renderVideoOnLambda()`](/docs/lambda/rendervideoonlambda) and [`renderStillOnLambda()`](/docs/lambda/renderstillonlambda) functions.+ - Locally using the [`renderMedia()`](/docs/renderer/rendermedia) and [`renderStill()`](/docs/renderer/renderstill) functions.+ - Locally using the [`npx remotion render`](/docs/cli) and [`npx remotion still`](/docs/cli) commands++ If you are rendering on Lambda, you can also pass the site name (in this case `abcdef`) as an abbreviation.- `siteName` _(string)_: The identifier of the site that was given. Is either the site name that you have passed into this function, or a random string that was generated if you didn't pass a site name.diff --git a/packages/lambda/src/cli/commands/sites/ls.ts b/packages/lambda/src/cli/commands/sites/ls.tsindex 4396f520d5..1aaea2c7d7 100644--- a/packages/lambda/src/cli/commands/sites/ls.ts+++ b/packages/lambda/src/cli/commands/sites/ls.ts@@ -40,7 +40,7 @@ export const sitesLsSubcommand = async () => {Log.info();Log.info(CliInternals.chalk.gray(- logRow(['Site ID', 'Bucket', 'Size', 'Last updated'])+ logRow(['Site Name', 'Bucket', 'Size', 'Last updated'])));