🎥 Make videos programmatically with React
update docs for new return values of service info
Matt McGillivray7f06493d3e19
diff --git a/packages/docs/docs/cloudrun/getServiceinfo.md b/packages/docs/docs/cloudrun/getServiceinfo.mdindex 0ae278d019..c769ceebd3 100644--- a/packages/docs/docs/cloudrun/getServiceinfo.md+++ b/packages/docs/docs/cloudrun/getServiceinfo.md@@ -29,6 +29,9 @@ console.log(info.timeoutInSeconds); // 500console.log(info.memoryLimit); // 1500console.log(info.cpuLimit); // 2048console.log(info.remotionVersion); // '2021-07-14'+console.log(service.uri); // "https://remotion--3-3-82--mem512mi--cpu1-0--t-500-1a2b3c4d5e-ue.a.run.app"+console.log(service.region); // "us-east1"+console.log(service.consoleUrl); // "https://console.cloud.google.com/run/detail/us-east1/remotion--3-3-82--mem512mi--cpu1-0--t-500/logs"```## Arguments@@ -64,6 +67,18 @@ The Remotion version of the service. Remotion is versioning the Cloud Run servicThe timeout that has been assigned to the Cloud Run service.+### `uri`++The endpoint of the service.++### `region`++The region of the deployed service.++### `consoleUrl`++A link to the GCP console page for this service. Specifically, a link to logs display.+## See also- [Source code for this function](https://github.com/remotion-dev/remotion/blob/main/packages/cloudrun/src/api/get-service-info.ts)diff --git a/packages/docs/docs/cloudrun/getservices.md b/packages/docs/docs/cloudrun/getservices.mdindex 8cf7767854..766dcb284d 100644--- a/packages/docs/docs/cloudrun/getservices.md+++ b/packages/docs/docs/cloudrun/getservices.md@@ -39,6 +39,7 @@ for (const service of info) {console.log(service.remotionVersion); // "3.3.82"console.log(service.uri); // "https://remotion--3-3-82--mem512mi--cpu1-0--t-300-1a2b3c4d5e-ue.a.run.app"console.log(service.region); // "us-east1"+ console.log(service.consoleUrl); // "https://console.cloud.google.com/run/detail/us-east1/remotion--3-3-82--mem512mi--cpu1-0--t-300/logs"}```@@ -67,6 +68,9 @@ for (const service of info) {console.log(service.memoryLimit); // 2Giconsole.log(service.cpuLimit); // 2console.log(service.remotionVersion); // "3.3.82"+ console.log(service.uri); // "https://remotion--3-3-82--mem2gi--cpu2--t-1100-1a2b3c4d5e-uc.a.run.app"+ console.log(service.region); // "us-central1"+ console.log(service.consoleUrl); // "https://console.cloud.google.com/run/detail/us-central1/remotion--3-3-82--mem2gi--cpu2--t-1100/logs"}```@@ -106,6 +110,10 @@ The endpoint of the service.The region of the deployed service. Useful if passing 'all regions' to the region input.+### `consoleUrl`++A link to the GCP console page for this service. Specifically, a link to logs display.+## See also- [Source code for this function](https://github.com/remotion-dev/remotion/blob/main/packages/cloudrun/src/api/get-services.ts)