🎥 Make videos programmatically with React
better guide users that a remotion site needs to be redeployed when local changes are made
Jonny Burgereadaf882ad61
diff --git a/packages/docs/docs/lambda/cli/sites.md b/packages/docs/docs/lambda/cli/sites.mdindex 0aeb33400d..e079f18a95 100644--- a/packages/docs/docs/lambda/cli/sites.md+++ b/packages/docs/docs/lambda/cli/sites.md@@ -22,6 +22,10 @@ Bundle 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`.+:::note+If you make changes locally, you need to redeploy the site. Use [`--site-name`](#--site-name) to overwrite an existing site.+:::+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) commandsdiff --git a/packages/docs/docs/lambda/deploysite.md b/packages/docs/docs/lambda/deploysite.mdindex 9018ca4936..cb39caaf3e 100644--- a/packages/docs/docs/lambda/deploysite.md+++ b/packages/docs/docs/lambda/deploysite.md@@ -6,9 +6,9 @@ slug: /lambda/deploysiteTakes a Remotion project, bundles it and uploads it to an S3 bucket. Once uploaded, a Lambda function can render any composition in the Remotion project by specifying the URL.-Note that the Remotion project will be deployed to a subdirectory, not the root of the domain. Therefore you must ensure that if you have specified paths in your Remotion project, they are able to handle this scenario.--Before calling this function, you should create a bucket, see [`getOrCreateBucket()`](/docs/lambda/getorcreatebucket).+- If you make changes locally, you need to redeploy the site. You can use [`siteName`](#sitename) to overwrite the previous site.+- Note that the Remotion project will be deployed to a subdirectory, not the root of the domain. Therefore you must ensure that if you have specified paths in your Remotion project, they are able to handle this scenario.+- Before calling this function, you should create a bucket, see [`getOrCreateBucket()`](/docs/lambda/getorcreatebucket).## Examplediff --git a/packages/lambda/src/cli/commands/sites/create.ts b/packages/lambda/src/cli/commands/sites/create.tsindex 34ff2f6839..e1bfaccc5e 100644--- a/packages/lambda/src/cli/commands/sites/create.ts+++ b/packages/lambda/src/cli/commands/sites/create.ts@@ -150,4 +150,16 @@ export const sitesCreateSubcommand = async (Log.info(`Serve URL: ${serveUrl}`);Log.info(`Site Name: ${siteName}`);++ Log.info();+ Log.info(+ CliInternals.chalk.blueBright(+ 'ℹ️ If you make changes to your code, you need to redeploy the site. You can overwrite the existing site by running:'+ )+ );+ Log.info(+ CliInternals.chalk.blueBright(+ `npx remotion lambda sites create ${args[0]} --site-name=${siteName}`+ )+ );};