🎥 Make videos programmatically with React
prettier
Jonny Burgerc055a0faeee3
diff --git a/packages/cloudrun/src/cli/commands/render/index.ts b/packages/cloudrun/src/cli/commands/render/index.tsindex 28f18359dc..f382786c9d 100644--- a/packages/cloudrun/src/cli/commands/render/index.ts+++ b/packages/cloudrun/src/cli/commands/render/index.ts@@ -1,7 +1,4 @@import {CliInternals} from '@remotion/cli';-import {renderMediaOnCloudrun} from '../../../api/render-media-on-cloudrun';-import type {CloudrunCodec} from '../../../shared/validate-gcp-codec';-// import {validateMaxRetries} from '../../../shared/validate-retries';import {ConfigInternals} from '@remotion/cli/config';import {RenderInternals} from '@remotion/renderer';import {Internals} from 'remotion';@@ -9,6 +6,8 @@ import {downloadFile} from '../../../api/download-file';import {extractMemoryFromURL} from '../../../api/helpers/extract-mem-from-url';import {extractTimeoutFromURL} from '../../../api/helpers/extract-time-from-url';import {getCloudLoggingClient} from '../../../api/helpers/get-cloud-logging-client';+import {renderMediaOnCloudrun} from '../../../api/render-media-on-cloudrun';+import type {CloudrunCodec} from '../../../shared/validate-gcp-codec';import {validateServeUrl} from '../../../shared/validate-serveurl';import {parsedCloudrunCli} from '../../args';import {Log} from '../../log';diff --git a/packages/cloudrun/src/cli/index.ts b/packages/cloudrun/src/cli/index.tsindex c76acc49b5..d29ace2f72 100644--- a/packages/cloudrun/src/cli/index.ts+++ b/packages/cloudrun/src/cli/index.ts@@ -2,9 +2,9 @@ import {parsedCloudrunCli} from './args';import {permissionsCommand, PERMISSIONS_COMMAND} from './commands/permissions';import {regionsCommand, REGIONS_COMMAND} from './commands/regions';import {renderCommand, RENDER_COMMAND} from './commands/render';-import {stillCommand, STILL_COMMAND} from './commands/still';import {servicesCommand, SERVICES_COMMAND} from './commands/services';import {sitesCommand, SITES_COMMAND} from './commands/sites';+import {stillCommand, STILL_COMMAND} from './commands/still';import {printHelp} from './help';import {quit} from './helpers/quit';import {Log} from './log';diff --git a/packages/cloudrun/src/pricing/gcp-regions.ts b/packages/cloudrun/src/pricing/gcp-regions.tsindex 04cac25241..259de4fd2c 100644--- a/packages/cloudrun/src/pricing/gcp-regions.ts+++ b/packages/cloudrun/src/pricing/gcp-regions.ts@@ -74,4 +74,4 @@ export const GCP_REGION_SHORTHAND: {[key in GcpRegion]: string} = {'us-west3': 'wm.a',};-export type GcpRegion = typeof GCP_REGIONS[number];+export type GcpRegion = (typeof GCP_REGIONS)[number];diff --git a/packages/cloudrun/src/shared/sa-permissions.json b/packages/cloudrun/src/shared/sa-permissions.jsonindex bc6e328d01..810bbd9917 100644--- a/packages/cloudrun/src/shared/sa-permissions.json+++ b/packages/cloudrun/src/shared/sa-permissions.json@@ -1,64 +1,64 @@{- "list": [- {- "name": "iam.serviceAccounts.actAs",- "reason": "When deploying, act as the default service account, which will grant further permissions required during deployment."- },- {- "name": "run.operations.get",- "reason": "Required during deployment to confirm that deployment was successful."- },- {- "name": "run.routes.invoke",- "reason": "Invoke the deployed Cloud Run services to perform a render."- },- {- "name": "run.services.create",- "reason": "Deploy new, and edit existing, Cloud Run services."- },- {- "name": "run.services.get",- "reason": ""- },- {- "name": "run.services.delete",- "reason": ""- },- {- "name": "run.services.list",- "reason": "Get a list of existing Cloud Run services, to ensure no unintended overwriting."- },- {- "name": "run.services.update",- "reason": "Update a Cloud Run service, for example providing it with more memory or CPU."- },- {- "name": "storage.buckets.create",- "reason": "Create the storage bucket to store the bundled site and render output."- },- {- "name": "storage.buckets.get",- "reason": ""- },- {- "name": "storage.buckets.list",- "reason": "Get a list of existing Cloud Storage resources, to ensure no unintended overwriting of storage buckets."- },- {- "name": "storage.objects.create",- "reason": "Create new objects in storage. This could be bundled sites, or renders, or logs."- },- {- "name": "storage.objects.delete",- "reason": ""- },- {- "name": "storage.objects.list",- "reason": ""- },- {- "name": "logging.logEntries.list",- "reason": "Used by the CLI to fetch recent logs if the Cloud Run service crashes, to assist in debugging the root cause."- }- ]-}\ No newline at end of file+ "list": [+ {+ "name": "iam.serviceAccounts.actAs",+ "reason": "When deploying, act as the default service account, which will grant further permissions required during deployment."+ },+ {+ "name": "run.operations.get",+ "reason": "Required during deployment to confirm that deployment was successful."+ },+ {+ "name": "run.routes.invoke",+ "reason": "Invoke the deployed Cloud Run services to perform a render."+ },+ {+ "name": "run.services.create",+ "reason": "Deploy new, and edit existing, Cloud Run services."+ },+ {+ "name": "run.services.get",+ "reason": ""+ },+ {+ "name": "run.services.delete",+ "reason": ""+ },+ {+ "name": "run.services.list",+ "reason": "Get a list of existing Cloud Run services, to ensure no unintended overwriting."+ },+ {+ "name": "run.services.update",+ "reason": "Update a Cloud Run service, for example providing it with more memory or CPU."+ },+ {+ "name": "storage.buckets.create",+ "reason": "Create the storage bucket to store the bundled site and render output."+ },+ {+ "name": "storage.buckets.get",+ "reason": ""+ },+ {+ "name": "storage.buckets.list",+ "reason": "Get a list of existing Cloud Storage resources, to ensure no unintended overwriting of storage buckets."+ },+ {+ "name": "storage.objects.create",+ "reason": "Create new objects in storage. This could be bundled sites, or renders, or logs."+ },+ {+ "name": "storage.objects.delete",+ "reason": ""+ },+ {+ "name": "storage.objects.list",+ "reason": ""+ },+ {+ "name": "logging.logEntries.list",+ "reason": "Used by the CLI to fetch recent logs if the Cloud Run service crashes, to assist in debugging the root cause."+ }+ ]+}