Skip to content

🎥 Make videos programmatically with React

update docs to clarify lambda confusion

Jonny Burger98c54b95b929
diff --git a/packages/docs/docs/lambda/setup.md b/packages/docs/docs/lambda/setup.md
index 809838eb64..febfbc4522 100644
--- a/packages/docs/docs/lambda/setup.md
+++ b/packages/docs/docs/lambda/setup.md
@@ -151,6 +151,8 @@ The function name is returned which you'll need for rendering.
</TabItem>
</Tabs>
+The function consists of necessary binaries and JavaScript code that can take a [serve URL](/docs/terminology#serve-url) and make renders from it. A function is bound to the Remotion version, if you upgrade Remotion, you [need to deploy a new function](/docs/lambda/upgrading). A function does not include your Remotion code, it will be deployed in the next step instead.
+
## 8. Deploy a site
<Tabs
@@ -162,13 +164,13 @@ values={[
}>
<TabItem value="cli">
-Run the following command to deploy your Remotion project to an S3 bucket. Pass as the last argument the entry file of the project - this is the file where [`registerRoot()`](/docs/register-root) is called.
+Run the following command to deploy your Remotion project to an S3 bucket. Pass as the last argument the [entry point](/docs/terminology#entry-point) of the project.
```bash
npx remotion lambda sites create src/index.ts --site-name=my-video
```
-A `serveUrl` will be printed pointing to the deployed project.
+A [`serveUrl`](/docs/terminology#serve-url) will be printed pointing to the deployed project.
When you update your Remotion video in the future, redeploy your site. Pass the same [`--site-name`](/docs/lambda/cli/sites#--site-name) to overwrite the previous deploy. If you don't pass [`--site-name`](/docs/lambda/cli/sites#--site-name), a unique URL will be generated on every deploy.
diff --git a/packages/docs/docs/terminology.md b/packages/docs/docs/terminology.md
index 405db3416d..a3f4cb9ff7 100644
--- a/packages/docs/docs/terminology.md
+++ b/packages/docs/docs/terminology.md
@@ -44,7 +44,14 @@ The Remotion Root is the directory in which Remotion commands get executed in. I
## Entry point
-The entry point is the file where the Remotion CLI and Node.JS APIs will look for a Remotion project. By default in most templates, it is `src/index.ts`. In older projects, it may have an `.tsx` extension instead of `.ts`. The entry point can be passed to the render command, for example: `npx remotion render src/index.ts`. The entry point should call [`registerRoot()`](/docs/register-root).
+The entry point is the file where the Remotion CLI and Node.JS APIs will look for a Remotion project.
+
+- By default in most templates, it is `src/index.ts`.
+- In older projects, it may have an `.tsx` extension instead of `.ts`.
+- The entry point can be passed to the render command, for example: `npx remotion render src/index.ts`.
+- The entry point should call [`registerRoot()`](/docs/register-root).
+- If you render a video using [`npx remotion render`](/docs/cli/render), the entry point is printed in grey.
+- You can customize the entry point in the config file using [`Config.Bundling.setEntryPoint()`](/docs/config#setentrypoint).
In the [Remotion Player](#remotion-player), there is no concept of an entry point. You directly pass a React component and metadata to the [`<Player>`](/docs/player/player).