Skip to content

πŸŽ₯ Make videos programmatically with React

add stub links

Jonny Burger740ce028c314
diff --git a/packages/cloudrun/src/api/check-if-service-exists.ts b/packages/cloudrun/src/api/check-if-service-exists.ts
index ad998f79b5..92ac404fa8 100644
--- a/packages/cloudrun/src/api/check-if-service-exists.ts
+++ b/packages/cloudrun/src/api/check-if-service-exists.ts
@@ -44,14 +44,9 @@ export const checkIfServiceExists = async ({
const cloudRunClient = getCloudRunClient();
- // Construct request
- const request = {
- parent,
- };
-
// Run request
try {
- const iterable = cloudRunClient.listServicesAsync(request);
+ const iterable = cloudRunClient.listServicesAsync({parent});
for await (const response of iterable) {
if (response.name === `${parent}/services/${serviceName}`) {
return response;
diff --git a/packages/cloudrun/src/api/render-still-on-cloudrun.ts b/packages/cloudrun/src/api/render-still-on-cloudrun.ts
index 7e333151b3..997e9b0c07 100644
--- a/packages/cloudrun/src/api/render-still-on-cloudrun.ts
+++ b/packages/cloudrun/src/api/render-still-on-cloudrun.ts
@@ -38,7 +38,7 @@ export type RenderStillOnCloudrunOutput = {
/**
* @description Triggers a render on a GCP Cloud Run service given a composition and a Cloud Run URL.
- * @see [Documentation](https://remotion.dev/docs/cloudrun/renderStillOnCloudrun)
+ * @see [Documentation](https://remotion.dev/docs/cloudrun/renderstilloncloudrun)
* @param params.authenticatedRequest If this is an authenticated request, .env file will be checked for GCP credentials
* @param params.cloudRunUrl The url of the Cloud Run service that should be used
* @param params.serviceName The name of the Cloud Run service that should be used
diff --git a/packages/docs/docs/cloudrun/deleteservice.md b/packages/docs/docs/cloudrun/deleteservice.md
new file mode 100644
index 0000000000..1333ed77b7
--- /dev/null
+++ b/packages/docs/docs/cloudrun/deleteservice.md
@@ -0,0 +1 @@
+TODO
diff --git a/packages/docs/docs/cloudrun/deploysite.md b/packages/docs/docs/cloudrun/deploysite.md
new file mode 100644
index 0000000000..1333ed77b7
--- /dev/null
+++ b/packages/docs/docs/cloudrun/deploysite.md
@@ -0,0 +1 @@
+TODO
diff --git a/packages/docs/docs/cloudrun/faq.md b/packages/docs/docs/cloudrun/faq.md
new file mode 100644
index 0000000000..1333ed77b7
--- /dev/null
+++ b/packages/docs/docs/cloudrun/faq.md
@@ -0,0 +1 @@
+TODO
diff --git a/packages/docs/docs/cloudrun/rendermediaoncloudrun.md b/packages/docs/docs/cloudrun/rendermediaoncloudrun.md
new file mode 100644
index 0000000000..1333ed77b7
--- /dev/null
+++ b/packages/docs/docs/cloudrun/rendermediaoncloudrun.md
@@ -0,0 +1 @@
+TODO
diff --git a/packages/docs/docs/cloudrun/renderstilloncloudrun.md b/packages/docs/docs/cloudrun/renderstilloncloudrun.md
new file mode 100644
index 0000000000..1333ed77b7
--- /dev/null
+++ b/packages/docs/docs/cloudrun/renderstilloncloudrun.md
@@ -0,0 +1 @@
+TODO
diff --git a/packages/docs/docs/cloudrun/setup.md b/packages/docs/docs/cloudrun/setup.md
index 1588ec552d..30225ec91e 100644
--- a/packages/docs/docs/cloudrun/setup.md
+++ b/packages/docs/docs/cloudrun/setup.md
@@ -276,7 +276,7 @@ const services = await getServices({
const serviceName = services[0].serviceName;
```
-We can now trigger a render of a video using the [`renderMediaOnCloudrun()`](/docs/cloudrun/renderMediaOnCloudrun) function.
+We can now trigger a render of a video using the [`renderMediaOnCloudrun()`](/docs/cloudrun/rendermediaoncloudrun) function.
```ts twoslash
// @module: ESNext
@@ -308,7 +308,7 @@ const { renderId, bucketName } = await renderMediaOnCloudrun({
});
```
-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.
+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.
Congrats! [Check your Cloud Storage Bucket](https://console.cloud.google.com/storage/browser) - you just rendered your first still using Remotion CloudRun πŸš€
</TabItem>
@@ -329,7 +329,7 @@ const services = await getServices({
const serviceName = services[0].serviceName;
```
-We can now trigger a render of a still using the [`renderStillOnCloudrun()`](/docs/cloudrun/renderStillOnCloudrun) function.
+We can now trigger a render of a still using the [`renderStillOnCloudrun()`](/docs/cloudrun/renderstilloncloudrun) function.
```ts twoslash
// @module: ESNext
diff --git a/packages/docs/docs/cloudrun/speculateservicename.md b/packages/docs/docs/cloudrun/speculateservicename.md
new file mode 100644
index 0000000000..1333ed77b7
--- /dev/null
+++ b/packages/docs/docs/cloudrun/speculateservicename.md
@@ -0,0 +1 @@
+TODO
diff --git a/packages/docs/docs/cloudrun/upgrading.md b/packages/docs/docs/cloudrun/upgrading.md
new file mode 100644
index 0000000000..1333ed77b7
--- /dev/null
+++ b/packages/docs/docs/cloudrun/upgrading.md
@@ -0,0 +1 @@
+TODO
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index 9d37a62f69..b9694a185b 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -232,6 +232,11 @@ module.exports = {
"cloudrun/getservices",
"cloudrun/getregions",
"cloudrun/deployservice",
+ "cloudrun/deleteservice",
+ "cloudrun/speculateservicename",
+ "cloudrun/deploysite",
+ "cloudrun/rendermediaoncloudrun",
+ "cloudrun/renderstilloncloudrun",
],
},
{
@@ -519,6 +524,8 @@ module.exports = {
"cloudrun/setup",
"cloudrun/generate-env",
"cloudrun/region-selection",
+ "cloudrun/faq",
+ "cloudrun/upgrading",
],
},
{