🎥 Make videos programmatically with React
document @remotion/lambda/client
Jonny Burger3277165e0890
diff --git a/packages/docs/docs/lambda/faq.md b/packages/docs/docs/lambda/faq.mdindex 51c4d06fdc..56ac15abcd 100644--- a/packages/docs/docs/lambda/faq.md+++ b/packages/docs/docs/lambda/faq.md@@ -1,6 +1,6 @@---sidebar_label: FAQ-title: Lambda - FAQ+title: FAQslug: /lambda/faq---diff --git a/packages/docs/docs/lambda/light-client.md b/packages/docs/docs/lambda/light-client.mdnew file mode 100644index 0000000000..a2b717213d--- /dev/null+++ b/packages/docs/docs/lambda/light-client.md@@ -0,0 +1,23 @@+---+sidebar_label: Light client+title: Light client+---++The following methods and types can be imported from `@remotion/lambda/client`:++```tsx twoslash+import {+ renderVideoOnLambda,+ renderStillOnLambda,+ getRenderProgress,+ getFunctions,+ AwsRegion,+ RenderProgress,+} from "@remotion/lambda/client";+```++These functions don't have any Node.JS dependencies and can be bundled with a bundler such as Webpack or ESBuild.++**We don't recommend calling these functions from the browser directly, as you will leak your AWS credentials.**++Instead, this light client is meant to reduce the bundle size and avoid problems if you are calling Remotion Lambda APIs from another Lambda function and therefore need to bundle your function code.diff --git a/packages/docs/docs/lambda/permissions.md b/packages/docs/docs/lambda/permissions.mdindex 2771eca1b9..86bfd0a3a1 100644--- a/packages/docs/docs/lambda/permissions.md+++ b/packages/docs/docs/lambda/permissions.md@@ -1,7 +1,6 @@---sidebar_label: Permissions-title: Lambda - Permissions-slug: /lambda/permissions+title: Permissions---import {UserPolicy} from '../../components/lambda/user-permissions.tsx';diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex cb2d64dd8f..ecdf89cdb3 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -62,6 +62,7 @@ module.exports = {"lambda/runtime","lambda/faq","lambda/chunkoptimization",+ "lambda/light-client",{collapsed: false,type: "category",