🎥 Make videos programmatically with React
fixed docs errors
Matt McGillivray23d1a2267812
diff --git a/packages/docs/docs/cloudrun/cli/still.md b/packages/docs/docs/cloudrun/cli/still.mdindex 592fcfdde1..cc22e3b874 100644--- a/packages/docs/docs/cloudrun/cli/still.md+++ b/packages/docs/docs/cloudrun/cli/still.md@@ -1,7 +1,7 @@---image: /generated/articles-docs-cloudrun-cli-still.pngid: still-sidebar_label: render+sidebar_label: stilltitle: "npx remotion cloudrun still"slug: /cloudrun/cli/stillcrumb: "Cloud Run CLI Reference"diff --git a/packages/docs/docs/cloudrun/setup.md b/packages/docs/docs/cloudrun/setup.mdindex 105edd7912..a62ff460ef 100644--- a/packages/docs/docs/cloudrun/setup.md+++ b/packages/docs/docs/cloudrun/setup.md@@ -363,7 +363,7 @@ const serviceName = "string";const updateRenderProgress = (progress: number) => {};// ---cut----const { renderId, bucketName } = await renderMediaOnCloudrun({+const result = await renderMediaOnCloudrun({serviceName,region: "us-east1",serveUrl: url,@@ -372,6 +372,11 @@ const { renderId, bucketName } = await renderMediaOnCloudrun({codec: "h264",updateRenderProgress,});++if (result.status === 'success') {+ console.log(result.bucketName);+ console.log(result.renderId);+}```The render will now run and after a while the video will be available in your cloud storage bucket. You can keep track of the render progress by passing a function to the [updateRenderProgress](/docs/cloudrun/rendermediaoncloudrun#updaterenderprogress) attribute, to receive progress as a number.