🎥 Make videos programmatically with React
be even more explicit
JonnyBurgerb04a7ac6db95
diff --git a/packages/docs/docs/editor-starter/production-checklist.mdx b/packages/docs/docs/editor-starter/production-checklist.mdxindex afc5695182..dd93de45fa 100644--- a/packages/docs/docs/editor-starter/production-checklist.mdx+++ b/packages/docs/docs/editor-starter/production-checklist.mdx@@ -31,6 +31,11 @@ Did you check the [features not included](/docs/editor-starter/features-not-inclDid you check the [features](/docs/editor-starter/features) to see if there are any features you are shipping you didn't know about? Disable them if you don't need them.+## AWS auto-deployment++Be aware that whenever you deploy, the AWS infrastructure is also updated.+[Make it more robust by separating production deployments from development deployments](/docs/editor-starter/rendering#auto-deployment-of-aws-infrastructure).+## LimitsDid you know that by default, there is a limit on the size of [the files that can be uploaded](/docs/editor-starter/asset-uploads#limits) and [the duration of the videos that can be captioned](/docs/editor-starter/captioning#limits)?diff --git a/packages/docs/docs/editor-starter/rendering.mdx b/packages/docs/docs/editor-starter/rendering.mdxindex f42183ef91..efde75632e 100644--- a/packages/docs/docs/editor-starter/rendering.mdx+++ b/packages/docs/docs/editor-starter/rendering.mdx@@ -32,6 +32,10 @@ Now, you can deploy a Lambda function and create a site by running:bun deploy.ts```+:::note+If you get an error `'MemorySize' value failed to satisfy constraint: Member must have value less than or equal to 3008`, you need to lower the memory size of your Lambda function by changing the [`MEM_SIZE_IN_MB`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20MEM_SIZE_IN_MB&type=code) variable to a lower value. You might be on the AWS free tier or have a low concurrency limit, which may hinder your ability to render many videos.+:::+Alternatively, running the build command will also build the site and deploy it to your S3 bucket:```sh@@ -49,18 +53,20 @@ You should re-execute the deployment whenever:Running the deployment script if the infrastructure already exists will not do anything.Therefore, you can run it as often as you want.-We recommend to run the deployment in your build pipeline as well, so that it executes whenever you deploy your app.-For example, if you deploy to Vercel, you can create a `vercel.json` file:+## Auto-deployment of AWS infrastructure++By default, the Lambda will be deployed in your deployment pipeline as well, so that it executes whenever you deploy your app.+That means whenever you deploy to e.g. Vercel, the site on S3 will be updated as well and a Lambda function will be created if none exists with your specified configuration.++This prevents you from forgetting to deploy whenever you make a change.-```json title="vercel.json"-{- "buildCommand": "bun deploy.ts && bun run build"-}+To make the deployment more robust, we recommend to separate production deployments from development deployments of the site, for example by giving the site a different name based on the `VERCEL_ENV` environment variable:++```ts+export const SITE_NAME = process.env.VERCEL_ENV === 'production' ? 'remotion-editor-starter' : 'remotion-editor-starter-dev';```-:::note-If you get an error `'MemorySize' value failed to satisfy constraint: Member must have value less than or equal to 3008`, you need to lower the memory size of your Lambda function by changing the [`MEM_SIZE_IN_MB`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20MEM_SIZE_IN_MB&type=code) variable to a lower value. You might be on the AWS free tier or have a low concurrency limit, which may hinder your ability to render many videos.-:::+[You don't need to separate function deployments between production and development](/docs/lambda/naming-convention#i-need-to-separate-production-staging-and-development).## Rendering