🎥 Make videos programmatically with React
describe once and link to it
Jonny Burger1a86afa09f54
diff --git a/packages/docs/docs/cli/compositions.md b/packages/docs/docs/cli/compositions.mdindex 2ae95b1fc2..792289af75 100644--- a/packages/docs/docs/cli/compositions.md+++ b/packages/docs/docs/cli/compositions.md@@ -35,7 +35,7 @@ Specify a location for the Remotion config file.### `--env-file` <AvailableFrom v="2.2.0" />-Specify a location for a dotenv file. Default `.env`.+Specify a location for a dotenv file - Default `.env`. [Read about how environment variables work in Remotion.](/docs/env-variables)### `--bundle-cache`diff --git a/packages/docs/docs/cli/preview.md b/packages/docs/docs/cli/preview.mdindex f2e680b6d9..08cf2a124b 100644--- a/packages/docs/docs/cli/preview.md+++ b/packages/docs/docs/cli/preview.md@@ -33,7 +33,7 @@ Specify a location for the Remotion config file.### `--env-file` <AvailableFrom v="2.2.0" />-Specify a location for a dotenv file. Default `.env`.+Specify a location for a dotenv file - Default `.env`. [Read about how environment variables work in Remotion.](/docs/env-variables)### `--log`diff --git a/packages/docs/docs/cli/still.md b/packages/docs/docs/cli/still.mdindex a643bec434..b36c3f69d7 100644--- a/packages/docs/docs/cli/still.md+++ b/packages/docs/docs/cli/still.md@@ -38,7 +38,7 @@ Specify a location for the Remotion config file.### `--env-file`-Specify a location for a dotenv file. Default `.env`.+Specify a location for a dotenv file - Default `.env`. [Read about how environment variables work in Remotion.](/docs/env-variables)### `--quality`diff --git a/packages/docs/docs/env-variables.md b/packages/docs/docs/env-variables.mdindex f7def58efc..061f6753c5 100644--- a/packages/docs/docs/env-variables.md+++ b/packages/docs/docs/env-variables.md@@ -40,12 +40,19 @@ You can override the location of your dotenv file using the [configuration fileWhen using the [Node.js APIs](/docs/renderer) such as [`renderMedia()`](/docs/renderer/render-media) or [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda), the environment variables are **not** picked up automatically.-The reason is that one might integrate Remotion as a small part of a big application and if Remotion would read the `.env` file automatically and forward all variables to renders, it would lead to a security issue.+The reason is that one might integrate Remotion as a small part of a big application and if Remotion would read the `.env` file automatically and forward all variables to renders, it would lead to a security issue.To pass environment variables while server-side-rendering, pass an object to the [`envVariables` option of `renderMedia()`](/docs/renderer/render-media#envvariables).If you want to read the environment variables from a `.env` file, use the [dotenv](https://www.npmjs.com/package/dotenv) package.+## The `envVariables` option++The `envVariables` option of [`renderMedia()`](/docs/renderer/render-media#envvariables), [`renderMediaOnLambda`](/docs/lambda/rendermediaonlambda) accepts an object of key-value pairs.+These values can then be read from `process.env` inside your React component.++The option is not for authenticating with AWS - instead, load the AWS credentials using one of the described methods above.+## See also- [`renderMedia()` - envVariables](/docs/renderer/render-media#envvariables)diff --git a/packages/docs/docs/lambda/cli/compositions.md b/packages/docs/docs/lambda/cli/compositions.mdindex 187d2cb060..60e4a27936 100644--- a/packages/docs/docs/lambda/cli/compositions.md+++ b/packages/docs/docs/lambda/cli/compositions.md@@ -43,7 +43,7 @@ Specify a location for the Remotion config file.### `--env-file`-Specify a location for a dotenv file. Default `.env`.+Specify a location for a dotenv file - Default `.env`. [Read about how environment variables work in Remotion.](/docs/env-variables)### `--log`diff --git a/packages/docs/docs/lambda/cli/render.md b/packages/docs/docs/lambda/cli/render.mdindex 5032e0429c..e857711b19 100644--- a/packages/docs/docs/lambda/cli/render.md+++ b/packages/docs/docs/lambda/cli/render.md@@ -160,7 +160,7 @@ Example values: `512K` for 512 kbps, `1M` for 1 Mbps.### `--env-file`-Specify a location for a dotenv file. Default `.env`. This is not for invoking the lambda function, but for passing environment variables that you would want to read inside the render.+Specify a location for a dotenv file - Default `.env`. [Read about how environment variables work in Remotion.](/docs/env-variables)### `--frames`