🎥 Make videos programmatically with React
`@remotion/lambda`: Deprecate `deploySite()` in favor for `deploySiteFromBundle()` (#9573)
Igor Samokhovets2bf96cd8b99c
diff --git a/packages/docs/deploy-homepage-video.ts b/packages/docs/deploy-homepage-video.tsindex a50c037be0..cdb5630cdd 100644--- a/packages/docs/deploy-homepage-video.ts+++ b/packages/docs/deploy-homepage-video.ts@@ -1,7 +1,8 @@// bun deploy-homepage-video.ts// Needs a .env+import {bundle} from '@remotion/bundler';import type {AwsRegion} from '@remotion/lambda';-import {deploySite, getOrCreateBucket} from '@remotion/lambda';+import {deploySiteFromBundle, getOrCreateBucket} from '@remotion/lambda';const region: AwsRegion = 'us-west-2';@@ -14,11 +15,13 @@ if (!process.env.REMOTION_AWS_ACCESS_KEY_ID?.endsWith('KQHJ')) {throw new Error('Please fill in your AWS credentials in .env');}+const bundleDir = await bundle({entryPoint: './src/remotion/entry.ts'});+// @ts-expect-error-const {serveUrl} = await deploySite({+const {serveUrl} = await deploySiteFromBundle({siteName: 'remotion-homepage',bucketName,- entryPoint: './src/remotion/entry.ts',+ bundleDir,region,});diff --git a/packages/docs/docs/lambda/autodelete.mdx b/packages/docs/docs/lambda/autodelete.mdxindex 275c7a0cbd..beb90327ae 100644--- a/packages/docs/docs/lambda/autodelete.mdx+++ b/packages/docs/docs/lambda/autodelete.mdx@@ -54,8 +54,9 @@ npx remotion lambda sites create --site-name=my-site-name --enable-folder-expiry<TabItem value="bucket">-```ts twoslash title="deploy.mjs" {6}-import {deploySite, getOrCreateBucket} from '@remotion/lambda';+```ts twoslash title="deploy.mjs"+import {bundle} from '@remotion/bundler';+import {deploySiteFromBundle, getOrCreateBucket} from '@remotion/lambda';import path from 'path';const {bucketName} = await getOrCreateBucket({@@ -63,9 +64,13 @@ const {bucketName} = await getOrCreateBucket({enableFolderExpiry: true,});-const {serveUrl} = await deploySite({+const bundleDir = await bundle({entryPoint: path.resolve(process.cwd(), 'src/index.ts'),- bucketName, // use the bucket with lifecyle rules+});++const {serveUrl} = await deploySiteFromBundle({+ bundleDir,+ bucketName, // use the bucket with lifecycle rulesregion: 'us-east-1',});console.log(serveUrl);@@ -216,5 +221,5 @@ The basis of the deletion is based on the `Last modified date` of the file/folde## See also- [AWS Expiring objects](https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-expire-general-considerations.html)-- [`deploySite()`](/docs/lambda/deploysite)+- [`deploySiteFromBundle()`](/docs/lambda/deploysitefrombundle)- [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda)diff --git a/packages/docs/docs/lambda/cli/compositions.mdx b/packages/docs/docs/lambda/cli/compositions.mdxindex c0ec531500..25f7da59b5 100644--- a/packages/docs/docs/lambda/cli/compositions.mdx+++ b/packages/docs/docs/lambda/cli/compositions.mdx@@ -15,7 +15,7 @@ Print list of composition IDs from a serve URL, fetched from inside a Lambda funnpx remotion lambda compositions <serve-url>```-- Obtain a [Serve URL](/docs/terminology/serve-url) using the [`sites create`](/docs/lambda/cli/sites/create) command or by calling [`deploySite()`](/docs/lambda/deploysite).+- Obtain a [Serve URL](/docs/terminology/serve-url) using the [`sites create`](/docs/lambda/cli/sites/create) command or by calling [`bundle()`](/docs/bundle) and [`deploySiteFromBundle()`](/docs/lambda/deploysitefrombundle).<details><summary>Show output</summary>diff --git a/packages/docs/docs/lambda/cli/render.mdx b/packages/docs/docs/lambda/cli/render.mdxindex ff0438815d..3803115570 100644--- a/packages/docs/docs/lambda/cli/render.mdx+++ b/packages/docs/docs/lambda/cli/render.mdx@@ -19,7 +19,7 @@ npx remotion lambda render <serve-url> [<composition-id>] [<output-location>]Arguments:-- Obtain a [Serve URL](/docs/terminology/serve-url) using the [`sites create`](/docs/lambda/cli/sites/create) command or by calling [`deploySite()`](/docs/lambda/deploysite).+- Obtain a [Serve URL](/docs/terminology/serve-url) using the [`sites create`](/docs/lambda/cli/sites/create) command or by calling [`bundle()`](/docs/bundle) and [`deploySiteFromBundle()`](/docs/lambda/deploysitefrombundle).- The [Composition ID](/docs/terminology/composition#composition-id). If not specified, the list of compositions will be fetched and you can choose a composition.- The `output-location` parameter is optional. If you don't specify it, the video is stored in your S3 bucket. If you specify a location, it gets downloaded to your device in an additional step.diff --git a/packages/docs/docs/lambda/cli/still.mdx b/packages/docs/docs/lambda/cli/still.mdxindex 18ff097f88..49ab057f29 100644--- a/packages/docs/docs/lambda/cli/still.mdx+++ b/packages/docs/docs/lambda/cli/still.mdx@@ -15,7 +15,7 @@ The command has the following structure:npx remotion lambda still <serve-url>? [<composition-id>] [<output-location>]```-- Obtain a [Serve URL](/docs/terminology/serve-url) using the [`sites create`](/docs/lambda/cli/sites/create) command or by calling [`deploySite()`](/docs/lambda/deploysite).+- Obtain a [Serve URL](/docs/terminology/serve-url) using the [`sites create`](/docs/lambda/cli/sites/create) command or by calling [`bundle()`](/docs/bundle) and [`deploySiteFromBundle()`](/docs/lambda/deploysitefrombundle).- The [Composition ID](/docs/terminology/composition#composition-id). If not specified, the list of compositions will be fetched and you can choose a composition.- The `output-location` parameter is optional. If you don't specify it, the still is stored in your S3 bucket. If you specify a location, it gets downloaded to your device in an additional step.diff --git a/packages/docs/docs/lambda/deletesite.mdx b/packages/docs/docs/lambda/deletesite.mdxindex 631940e729..06e9640e27 100644--- a/packages/docs/docs/lambda/deletesite.mdx+++ b/packages/docs/docs/lambda/deletesite.mdx@@ -73,4 +73,4 @@ The amount of space that was freed by deleting the project.- [Source code for this function](https://github.com/remotion-dev/remotion/blob/main/packages/lambda/src/api/delete-site.ts)- [getSites()](/docs/lambda/getsites)-- [deploySite()](/docs/lambda/deploysite)+- [deploySiteFromBundle()](/docs/lambda/deploysitefrombundle)diff --git a/packages/docs/docs/lambda/deploysite.mdx b/packages/docs/docs/lambda/deploysite.mdxindex 49e4ed23eb..f88880fa13 100644--- a/packages/docs/docs/lambda/deploysite.mdx+++ b/packages/docs/docs/lambda/deploysite.mdx@@ -6,9 +6,11 @@ slug: /lambda/deploysitecrumb: 'Lambda API'----Takes 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.+:::warning Deprecated+Prefer building with [`bundle()`](/docs/bundle) and uploading its output with [`deploySiteFromBundle()`](/docs/lambda/deploysitefrombundle). Separating these steps avoids rebuilding an unchanged bundle during deployment.+:::-If the project was already bundled in an earlier build step, use [`deploySiteFromBundle()`](/docs/lambda/deploysitefrombundle) to upload it without bundling again.+`deploySite()` remains available and continues to bundle a Remotion project and upload it to an S3 bucket. Once uploaded, a Lambda function can render any composition in the Remotion project by specifying the URL.- 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.diff --git a/packages/docs/docs/lambda/deploysitefrombundle.mdx b/packages/docs/docs/lambda/deploysitefrombundle.mdxindex 83730fc369..1cb2126c09 100644--- a/packages/docs/docs/lambda/deploysitefrombundle.mdx+++ b/packages/docs/docs/lambda/deploysitefrombundle.mdx@@ -10,7 +10,7 @@ crumb: 'Lambda API'Uploads a local [Remotion Bundle](/docs/terminology/bundle) to an S3 bucket.-Use this API to build an artifact once and deploy it in a later Docker or CI stage. Before calling it, retrieve a bucket using [`getOrCreateBucket()`](/docs/lambda/getorcreatebucket).+Use this API together with [`bundle()`](/docs/bundle) to separate building from deployment. This allows an artifact to be built once and deployed in a later Docker or CI stage. Before calling it, retrieve a bucket using [`getOrCreateBucket()`](/docs/lambda/getorcreatebucket).## Examplediff --git a/packages/docs/docs/lambda/getcompositionsonlambda.mdx b/packages/docs/docs/lambda/getcompositionsonlambda.mdxindex 6c3c437e70..43a5e70dc3 100644--- a/packages/docs/docs/lambda/getcompositionsonlambda.mdx+++ b/packages/docs/docs/lambda/getcompositionsonlambda.mdx@@ -48,7 +48,7 @@ In which region your Lambda function is deployed.### `serveUrl`-A URL pointing to a Remotion project. Use [`deploySite()`](/docs/lambda/deploysite) to deploy a Remotion project.+A URL pointing to a Remotion project. Create one by building with [`bundle()`](/docs/bundle) and deploying with [`deploySiteFromBundle()`](/docs/lambda/deploysitefrombundle).### `inputProps`diff --git a/packages/docs/docs/lambda/rendermediaonlambda.mdx b/packages/docs/docs/lambda/rendermediaonlambda.mdxindex c0a5df45c4..f3a74d3713 100644--- a/packages/docs/docs/lambda/rendermediaonlambda.mdx+++ b/packages/docs/docs/lambda/rendermediaonlambda.mdx@@ -88,7 +88,7 @@ Specify a single frame (passing a `number`) or a range of frames (passing a tupl### `serveUrl`-A URL pointing to a Remotion project. Use [`deploySite()`](/docs/lambda/deploysite) to deploy a Remotion project.+A URL pointing to a Remotion project. Create one by building with [`bundle()`](/docs/bundle) and deploying with [`deploySiteFromBundle()`](/docs/lambda/deploysitefrombundle).### `composition`diff --git a/packages/docs/docs/lambda/renderstillonlambda.mdx b/packages/docs/docs/lambda/renderstillonlambda.mdxindex a80a82b8da..0437bdb25b 100644--- a/packages/docs/docs/lambda/renderstillonlambda.mdx+++ b/packages/docs/docs/lambda/renderstillonlambda.mdx@@ -52,7 +52,7 @@ Use [`deployFunction()`](/docs/lambda/deployfunction) to create a new function a### `serveUrl`-A URL pointing to a Remotion project. Use [`deploySite()`](/docs/lambda/deploysite) to deploy a Remotion project.+A URL pointing to a Remotion project. Create one by building with [`bundle()`](/docs/bundle) and deploying with [`deploySiteFromBundle()`](/docs/lambda/deploysitefrombundle).### `composition`diff --git a/packages/docs/docs/lambda/setup.mdx b/packages/docs/docs/lambda/setup.mdxindex 07d9756d36..d77737a125 100644--- a/packages/docs/docs/lambda/setup.mdx+++ b/packages/docs/docs/lambda/setup.mdx@@ -148,36 +148,40 @@ When you update your Remotion code in the future, redeploy your site. Pass the s</TabItem><TabItem value="node">-First, you need to create an S3 bucket in your preferred region. If one already exists, it will be used instead:+First, create an S3 bucket in your preferred region. If one already exists, it will be used instead:```ts twoslash-import path from 'path';-import {deploySite, getOrCreateBucket} from '@remotion/lambda';+import {getOrCreateBucket} from '@remotion/lambda';const {bucketName} = await getOrCreateBucket({region: 'us-east-1',});```-Next, upload your Remotion project to an S3 bucket. Specify the entry point of your Remotion project, this is the file where [`registerRoot()`](/docs/register-root) is called.+Next, build your Remotion project and upload the resulting bundle to the bucket. The entry point is the file where [`registerRoot()`](/docs/register-root) is called.```ts twoslashimport path from 'path';-import {deploySite, getOrCreateBucket} from '@remotion/lambda';+import {bundle} from '@remotion/bundler';+import {deploySiteFromBundle, getOrCreateBucket} from '@remotion/lambda';const {bucketName} = await getOrCreateBucket({region: 'us-east-1',});// ---cut----const {serveUrl} = await deploySite({- bucketName,+const bundleDir = await bundle({entryPoint: path.resolve(process.cwd(), 'src/index.ts'),+});++const {serveUrl} = await deploySiteFromBundle({+ bucketName,+ bundleDir,region: 'us-east-1',siteName: 'my-video',});```-When you update your Remotion code in the future, redeploy your site. Pass the same [`siteName`](/docs/lambda/deploysite#sitename) to overwrite the previous deploy. If you don't pass [`siteName`](/docs/lambda/deploysite#sitename), a unique URL will be generated on every deploy.+When you update your Remotion code, create and deploy a new bundle. Pass the same [`siteName`](/docs/lambda/deploysitefrombundle#sitename) to overwrite the previous deployment. If you don't pass [`siteName`](/docs/lambda/deploysitefrombundle#sitename), a unique URL will be generated on every deployment.</TabItem></Tabs>diff --git a/packages/docs/docs/lambda/table-of-contents.tsx b/packages/docs/docs/lambda/table-of-contents.tsxindex c0a47e4aed..54cf5c02d9 100644--- a/packages/docs/docs/lambda/table-of-contents.tsx+++ b/packages/docs/docs/lambda/table-of-contents.tsx@@ -34,14 +34,14 @@ export const TableOfContents: React.FC = () => {<strong>deleteSite()</strong><div>Delete a bundle from S3</div></TOCItem>- <TOCItem link="/docs/lambda/deploysite">- <strong>deploySite()</strong>- <div>Bundle and upload a site to S3</div>- </TOCItem><TOCItem link="/docs/lambda/deploysitefrombundle"><strong>deploySiteFromBundle()</strong><div>Upload an existing bundle to S3</div></TOCItem>+ <TOCItem link="/docs/lambda/deploysite">+ <strong>deploySite()</strong>+ <div>Deprecated: Bundle and upload a site to S3</div>+ </TOCItem><TOCItem link="/docs/lambda/getawsclient"><strong>getAwsClient()</strong><div>Access the AWS SDK directly</div>diff --git a/packages/docs/docs/legacy-babel-loader.mdx b/packages/docs/docs/legacy-babel-loader.mdxindex 99e6c472a1..23c48b5145 100644--- a/packages/docs/docs/legacy-babel-loader.mdx+++ b/packages/docs/docs/legacy-babel-loader.mdx@@ -60,9 +60,9 @@ Config.overrideBundlerConfig((currentConfiguration) => {});```-## When using `bundle` or `deploySite`+## When using `bundle()`-When using the Node.JS APIs - [`bundle()`](/docs/bundle) for SSR or [`deploySite()`](/docs/lambda/deploysite) for Lambda, also provide the bundler override because these APIs do not read the config file.+When using the [`bundle()`](/docs/bundle) Node.js API, provide the bundler override directly because Node.js APIs do not read from the config file. To deploy the resulting directory to Lambda, pass it to [`deploySiteFromBundle()`](/docs/lambda/deploysitefrombundle).```ts twoslash title="my-script.js"// @filename: ./src/bundler-override.tsdiff --git a/packages/docs/docs/miscellaneous/ts-aliases.mdx b/packages/docs/docs/miscellaneous/ts-aliases.mdxindex e70736a4ca..9bf3c83a9b 100644--- a/packages/docs/docs/miscellaneous/ts-aliases.mdx+++ b/packages/docs/docs/miscellaneous/ts-aliases.mdx@@ -51,7 +51,7 @@ Config.overrideBundlerConfig((config) => {});```-Remember that in Node.JS APIs, the config file does not apply, so you need to pass the shared override as `bundlerOverride` to the [`bundle()`](/docs/bundle) and [`deploySite()`](/docs/lambda/deploysite) functions.+Remember that in the [`bundle()`](/docs/bundle) Node.js API, the config file does not apply, so you need to pass the shared override directly as `bundlerOverride`.## Automatically syncing Webpack and TypeScript aliasesdiff --git a/packages/docs/docs/overwriting-webpack-config.mdx b/packages/docs/docs/overwriting-webpack-config.mdxindex d4dbd7f8cc..ccdde355bd 100644--- a/packages/docs/docs/overwriting-webpack-config.mdx+++ b/packages/docs/docs/overwriting-webpack-config.mdx@@ -49,7 +49,7 @@ await bundle({});```-The [`deploySite()`](/docs/lambda/deploysite#rspack) options for Lambda and [Cloud Run](/docs/cloudrun/deploysite#rspack) have the same `rspack` setting.+The [`bundle()`](/docs/bundle#rspack) API and [Cloud Run's `deploySite()`](/docs/cloudrun/deploysite#rspack) have the same `rspack` setting.## Override the bundler configuration@@ -127,9 +127,9 @@ Config.overrideRspackConfig((currentConfiguration) => {});```-## When using `bundle()` and `deploySite()`+## When using `bundle()`-Node.js APIs do not read `remotion.config.ts`. Pass the overrides directly to [`bundle()`](/docs/bundle) or [`deploySite()`](/docs/lambda/deploysite). Put an override in a separate file to import it from both `remotion.config.ts` and your Node.js script.+The `bundle()` Node.js API does not read `remotion.config.ts`. Pass the overrides directly to [`bundle()`](/docs/bundle). Put an override in a separate file to import it from both `remotion.config.ts` and your Node.js script.Pass portable changes as `bundlerOverride`.@@ -174,29 +174,6 @@ await bundle({});```-Or while using with `deploySite`:--```ts twoslash title="my-script.js"-// @filename: ./src/bundler-override.ts-import {BundlerOverrideFn} from '@remotion/bundler';-export const bundlerOverride: BundlerOverrideFn = (c) => c;-// @filename: remotion.config.ts-// @target: esnext-// ---cut----import {deploySite} from '@remotion/lambda';-import {bundlerOverride} from './src/bundler-override';--await deploySite({- entryPoint: require.resolve('./src/index.ts'),- region: 'us-east-1',- bucketName: 'remotionlambda-c7fsl3d',- options: {- bundlerOverride,- },- // ...other parameters-});-```-For bundler-specific changes, pass `webpackOverride` or `rspackOverride` instead.## Multiple overrides@@ -315,7 +292,7 @@ import {enableMdx} from './src/enable-mdx';Config.overrideBundlerConfig(enableMdx);```-4. Add it to your [Node.JS API calls as well if necessary](#when-using-bundle-and-deploysite).+4. Add it to your [Node.JS API calls as well if necessary](#when-using-bundle).5. Create a file which contains `declare module '*.mdx';` in your project to fix a TypeScript error showing up.@@ -392,7 +369,7 @@ import {enablePostCSS} from './src/enable-postcss';Config.overrideBundlerConfig(enablePostCSS);```-4. Add it to your [Node.JS API calls as well if necessary](#when-using-bundle-and-deploysite).+4. Add it to your [Node.JS API calls as well if necessary](#when-using-bundle).5. Restart the Remotion Studio.@@ -467,7 +444,7 @@ import {enableSvgr} from './src/enable-svgr';Config.overrideWebpackConfig(enableSvgr);```-4. Add it to your [Node.JS API calls as well if necessary](#when-using-bundle-and-deploysite).+4. Add it to your [Node.JS API calls as well if necessary](#when-using-bundle).5. Restart the Remotion Studio.@@ -529,7 +506,7 @@ declare module '*.glsl' {}```-4. Add it to your [Node.JS API calls as well if necessary](#when-using-bundle-and-deploysite).+4. Add it to your [Node.JS API calls as well if necessary](#when-using-bundle).5. Reset the webpack cache by deleting the `node_modules/.cache` folder.6. Restart the Remotion Studio.@@ -582,7 +559,7 @@ Since Webpack does not allow synchronous WebAssembly code in the main chunk, youAfter changing the configuration, restart the Remotion Studio.-Add the asynchronous override as `bundlerOverride` to your [Node.JS API calls if necessary](#when-using-bundle-and-deploysite). Pass the synchronous override as `webpackOverride`.+Add the asynchronous override as `bundlerOverride` to your [Node.JS API calls if necessary](#when-using-bundle). Pass the synchronous override as `webpackOverride`.### Change the `@jsxImportSource`diff --git a/packages/docs/docs/player/player-integration.mdx b/packages/docs/docs/player/player-integration.mdxindex f2871c0e43..e0a33ff4e5 100644--- a/packages/docs/docs/player/player-integration.mdx+++ b/packages/docs/docs/player/player-integration.mdx@@ -205,7 +205,7 @@ const bundled = await bundle({See [Server-side rendering](/docs/ssr) for a full example.:::tip-When using Lambda, you don't need this, you can use the CLI or [`deploySite()`](/docs/lambda/deploysite) which will bundle the video for you.+When using Lambda, pass the resulting directory to [`deploySiteFromBundle()`](/docs/lambda/deploysitefrombundle). Alternatively, use the Lambda CLI, which bundles and deploys the project in one command.:::## See alsodiff --git a/packages/docs/docs/tailwind.mdx b/packages/docs/docs/tailwind.mdxindex 6006799c6c..716d1b4a5b 100644--- a/packages/docs/docs/tailwind.mdx+++ b/packages/docs/docs/tailwind.mdx@@ -112,7 +112,7 @@ Config.overrideBundlerConfig((currentConfiguration) => {});```-3. If you use the [`bundle()` or `deploySite()` Node.JS API, add the bundler override to it as well](/docs/bundlers#when-using-bundle-and-deploysite).+3. If you use the [`bundle()` Node.js API, add the bundler override to it as well](/docs/bundlers#when-using-bundle).4. Create a file `src/index.css` with the following content:@@ -199,7 +199,7 @@ Config.overrideBundlerConfig((currentConfiguration) => {Prior to `v3.3.39`, the option was called `Config.Bundling.overrideWebpackConfig()`.:::-3. If you use the [`bundle()` or `deploySite()` Node.JS API, add the bundler override to it as well](/docs/bundlers#when-using-bundle-and-deploysite).+3. If you use the [`bundle()` Node.js API, add the bundler override to it as well](/docs/bundlers#when-using-bundle).4. Create a file `src/style.css` with the following content:diff --git a/packages/docs/docs/troubleshooting/bundling-bundle.mdx b/packages/docs/docs/troubleshooting/bundling-bundle.mdxindex cf74378a46..fa8ba43da5 100644--- a/packages/docs/docs/troubleshooting/bundling-bundle.mdx+++ b/packages/docs/docs/troubleshooting/bundling-bundle.mdx@@ -42,7 +42,7 @@ See how to parametrize the [content with input props](/docs/passing-props) as we**If you are using a long-running server:** we recommend to call `bundle()` once in a Node.js context and then reusing it for the lifetime of the server. See: [Rendering in Node.js](/docs/ssr-node)-**If you are rendering on Lambda**: Create a bundle during the build step and upload it later using [`deploySiteFromBundle()`](/docs/lambda/deploysitefrombundle). You may also bundle and upload together using [`npx remotion lambda sites create`](/docs/lambda/cli/sites/create) or [`deploySite()`](/docs/lambda/deploysite). Refer to the deployed bundle using the URL returned by the deployment.+**If you are rendering on Lambda**: Create a bundle during the build step and upload it later using [`deploySiteFromBundle()`](/docs/lambda/deploysitefrombundle). You may also bundle and upload together using [`npx remotion lambda sites create`](/docs/lambda/cli/sites/create). Refer to the deployed bundle using the URL returned by the deployment.In both cases, do all parameterization of the video using [input props](/docs/parameterized-rendering).diff --git a/packages/docs/docs/troubleshooting/loading-root-component.mdx b/packages/docs/docs/troubleshooting/loading-root-component.mdxindex acd0f2ab8f..387dd4c711 100644--- a/packages/docs/docs/troubleshooting/loading-root-component.mdx+++ b/packages/docs/docs/troubleshooting/loading-root-component.mdx@@ -26,7 +26,7 @@ In the CLI, the entry point is passed as an argument to the render command:npx remotion render [entry-point]```-In the [`bundle()`](/docs/bundle) and [`deploySite()`](/docs/lambda/deploysite) Node.JS apis, you pass the entry point via the [`entryPoint`](/docs/terminology/entry-point) property.+In the [`bundle()`](/docs/bundle) Node.js API, you pass the entry point via the [`entryPoint`](/docs/terminology/entry-point) property.## See alsodiff --git a/packages/docs/src/helpers/system-prompt.ts b/packages/docs/src/helpers/system-prompt.tsindex eadf48c551..e5c250d18a 100644--- a/packages/docs/src/helpers/system-prompt.ts+++ b/packages/docs/src/helpers/system-prompt.ts@@ -360,13 +360,13 @@ Rendering requires a Lambda function and a site deployed on S3.If the user is using the CLI:- A Lambda function can be deployed using \`npx remotion lambda functions deploy\`: https://www.remotion.dev/docs/lambda/cli/functions/deploy-- A site can be deployed using \`npx remotion lambda sites create\`: https://www.remotion.dev/docs/lambda/cli/sites/create. The first argument must refer to the entry point.+- A site can be deployed using \`npx remotion lambda sites create\`: https://www.remotion.dev/docs/lambda/cli/sites/create. The entry point may be passed as the first argument; otherwise it is determined automatically.- A video can be rendered using \`npx remotion lambda render [comp-id]\`. The composition ID must be referenced.If the user is using the Node.js APIs:- A Lambda function can be deployed using \`deployFunction()\`: https://www.remotion.dev/docs/lambda/deployfunction-- A site can be deployed using \`deploySite()\`: https://www.remotion.dev/docs/lambda/deploysite+- A site can be built using \`bundle()\` and deployed using \`deploySiteFromBundle()\`: https://www.remotion.dev/docs/bundle and https://www.remotion.dev/docs/lambda/deploysitefrombundle- A video can be rendered using \`renderMediaOnLambda()\`: https://www.remotion.dev/docs/lambda/rendermediaonlambda.- If a video is rendered, the progress must be polled using \`getRenderProgress()\`: https://www.remotion.dev/docs/lambda/getrenderprogress`.trimStart();diff --git a/packages/docs/static/llms.txt b/packages/docs/static/llms.txtindex 9cf9a7463a..0b515d7af0 100644--- a/packages/docs/static/llms.txt+++ b/packages/docs/static/llms.txt@@ -357,12 +357,12 @@ Rendering requires a Lambda function and a site deployed on S3.If the user is using the CLI:- A Lambda function can be deployed using `npx remotion lambda functions deploy`: https://www.remotion.dev/docs/lambda/cli/functions/deploy-- A site can be deployed using `npx remotion lambda sites create`: https://www.remotion.dev/docs/lambda/cli/sites/create. The first argument must refer to the entry point.+- A site can be deployed using `npx remotion lambda sites create`: https://www.remotion.dev/docs/lambda/cli/sites/create. The entry point may be passed as the first argument; otherwise it is determined automatically.- A video can be rendered using `npx remotion lambda render [comp-id]`. The composition ID must be referenced.If the user is using the Node.js APIs:- A Lambda function can be deployed using `deployFunction()`: https://www.remotion.dev/docs/lambda/deployfunction-- A site can be deployed using `deploySite()`: https://www.remotion.dev/docs/lambda/deploysite+- A site can be built using `bundle()` and deployed using `deploySiteFromBundle()`: https://www.remotion.dev/docs/bundle and https://www.remotion.dev/docs/lambda/deploysitefrombundle- A video can be rendered using `renderMediaOnLambda()`: https://www.remotion.dev/docs/lambda/rendermediaonlambda.- If a video is rendered, the progress must be polled using `getRenderProgress()`: https://www.remotion.dev/docs/lambda/getrenderprogressdiff --git a/packages/lambda/src/cli/commands/sites/index.ts b/packages/lambda/src/cli/commands/sites/index.tsindex dccf9648ff..2b5376f457 100644--- a/packages/lambda/src/cli/commands/sites/index.ts+++ b/packages/lambda/src/cli/commands/sites/index.ts@@ -21,7 +21,7 @@ const printSitesHelp = (logLevel: LogLevel) => {CliInternals.Log.info({indent: false, logLevel});CliInternals.Log.info({indent: false, logLevel},- `${BINARY_NAME} ${SITES_COMMAND} ${SITES_CREATE_SUBCOMMAND} <entry-point>`,+ `${BINARY_NAME} ${SITES_COMMAND} ${SITES_CREATE_SUBCOMMAND} [entry-point]`,);CliInternals.Log.info({indent: false, logLevel},diff --git a/packages/lambda/src/index.ts b/packages/lambda/src/index.tsindex b20debd924..edfd6bddb8 100644--- a/packages/lambda/src/index.ts+++ b/packages/lambda/src/index.ts@@ -46,7 +46,7 @@ import type {} from './api/deploy-function';import {deployFunction} from './api/deploy-function';import type {DeploySiteInput, DeploySiteOutput} from './api/deploy-site';-import {deploySite} from './api/deploy-site';+import {deploySite as deploySiteImplementation} from './api/deploy-site';import type {DeploySiteFromBundleInput,DeploySiteFromBundleOutput,@@ -77,6 +77,12 @@ import {export type {WebhookPayload} from '@remotion/lambda-client';+/**+ * @deprecated Use `bundle()` from `@remotion/bundler`, then pass its output to `deploySiteFromBundle()`.+ */+const deploySite: (args: DeploySiteInput) => DeploySiteOutput =+ deploySiteImplementation;+/*** @deprecated Import this from `@remotion/lambda-client` instead*/diff --git a/packages/renderer/src/set-props-and-env.ts b/packages/renderer/src/set-props-and-env.tsindex e61b5bc69c..858ab22266 100644--- a/packages/renderer/src/set-props-and-env.ts+++ b/packages/renderer/src/set-props-and-env.ts@@ -298,7 +298,7 @@ const innerSetPropsAndEnv = async ({'When using the Remotion Lambda:',' ▸ Use `npx remotion lambda sites create` to redeploy the site with the latest version.',' ℹ Use --site-name with the same name as before to overwrite your site.',- ' ▸ Use `deploySite()` if you are using the Node.JS APIs.',+ ' ▸ Use `bundle()` and `deploySiteFromBundle()` if you are using the Node.js APIs.',].join('\n'),);}@@ -315,7 +315,7 @@ const innerSetPropsAndEnv = async ({`To resolve this warning:`,'▸ Use `npx remotion lambda sites create` to redeploy the site with the latest version.',' ℹ Use --site-name with the same name as before to overwrite your site.',- '▸ Use `deploySite()` if you are using the Node.JS APIs.',+ '▸ Use `bundle()` and `deploySiteFromBundle()` if you are using the Node.js APIs.',].join('\n'),);} else {