🎥 Make videos programmatically with React
adding gcp region env variable
Matt McGillivray356fe3b79c03
diff --git a/packages/cloudrun/src/cli/get-gcp-region.ts b/packages/cloudrun/src/cli/get-gcp-region.tsindex 4fb562664d..9ff7f58840 100644--- a/packages/cloudrun/src/cli/get-gcp-region.ts+++ b/packages/cloudrun/src/cli/get-gcp-region.ts@@ -9,5 +9,11 @@ export const getGcpRegion = (): GcpRegion => {return parsedCloudrunCli.region;}+ const envVariable = process.env.REMOTION_GCP_REGION;+ if (envVariable) {+ validateGcpRegion(envVariable);+ return envVariable;+ }+return DEFAULT_REGION;};diff --git a/packages/docs/docs/cloudrun/cli.md b/packages/docs/docs/cloudrun/cli.mdindex 364e9e986e..619a562bc4 100644--- a/packages/docs/docs/cloudrun/cli.md+++ b/packages/docs/docs/cloudrun/cli.md@@ -15,3 +15,25 @@ To use the Remotion Cloudrun CLI, you first need to [install it](/docs/cloudrun/- [render](/docs/cloudrun/cli/render)- [permissions](/docs/cloudrun/cli/permissions)- [regions](/docs/cloudrun/cli/regions)++## Global options++### `--region`++Selects a GCP region: For example:++```+--region=us-central1+```++The default region is `us-east1`. You may also set a `REMOTION_GCP_REGION` environment variable directly or via `.env` file.++See: [Region selection](/docs/cloudrun/region-selection)++### `--yes`, `-y`++Skips confirmation when doing a destructive action.++### `--quiet`, `-q`++Prints the minimal amount of logs.