Skip to content

🎥 Make videos programmatically with React

eslint cleanup

Matt McGillivraya46d2e9d4d0c
diff --git a/packages/gcp/src/cli/commands/compositions/index.ts b/packages/gcp/src/cli/commands/compositions/index.ts
index b1d6335ff5..7ad9b43981 100644
--- a/packages/gcp/src/cli/commands/compositions/index.ts
+++ b/packages/gcp/src/cli/commands/compositions/index.ts
@@ -7,10 +7,7 @@ import {Log} from '../../log';
export const COMPOSITIONS_COMMAND = 'compositions';
-export const compositionsCommand = async (
- args: string[],
- remotionRoot: string
-) => {
+export const compositionsCommand = async (args: string[]) => {
const serveUrl = args[0];
if (!serveUrl) {
@@ -26,7 +23,7 @@ export const compositionsCommand = async (
validateServeUrl(serveUrl);
const comps = await getCompositionsOnGcp({
- serveUrl
+ serveUrl,
});
CliInternals.printCompositions(comps);
diff --git a/packages/gcp/src/cli/commands/sites/create.ts b/packages/gcp/src/cli/commands/sites/create.ts
index ece99e1ec4..ebf46f4a4e 100644
--- a/packages/gcp/src/cli/commands/sites/create.ts
+++ b/packages/gcp/src/cli/commands/sites/create.ts
@@ -1,176 +1,176 @@
-import { CliInternals, ConfigInternals } from "@remotion/cli";
-import { quit } from "../../helpers/quit";
-import { Log } from "../../log";
-import { BINARY_NAME } from "../../../shared/constants";
-import { existsSync, lstatSync } from "fs";
-import path from "path";
-import { Internals } from "remotion";
-import { parsedGcpCli } from "../../args";
-import { validateSiteName } from "../../../shared/validate-site-name";
-import { getGcpRegion } from "../../get-gcp-region";
-import { getOrCreateBucket } from "../../../api/get-or-create-bucket";
+import {CliInternals, ConfigInternals} from '@remotion/cli';
+import {existsSync, lstatSync} from 'fs';
+import path from 'path';
+import {Internals} from 'remotion';
+import {deploySite} from '../../../api/deploy-site';
+import {getOrCreateBucket} from '../../../api/get-or-create-bucket';
+import {BINARY_NAME} from '../../../shared/constants';
+import {validateSiteName} from '../../../shared/validate-site-name';
+import {parsedGcpCli} from '../../args';
+import {getGcpRegion} from '../../get-gcp-region';
import type {
- BucketCreationProgress,
- BundleProgress,
- DeployToStorageProgress,
-} from "../../helpers/progress-bar";
+ BucketCreationProgress,
+ BundleProgress,
+ DeployToStorageProgress,
+} from '../../helpers/progress-bar';
import {
- makeBucketProgress,
- makeBundleProgress,
- makeDeployProgressBar,
-} from "../../helpers/progress-bar";
-import { deploySite } from "../../../api/deploy-site";
+ makeBucketProgress,
+ makeBundleProgress,
+ makeDeployProgressBar,
+} from '../../helpers/progress-bar';
+import {quit} from '../../helpers/quit';
+import {Log} from '../../log';
-export const SITES_CREATE_SUBCOMMAND = "create";
+export const SITES_CREATE_SUBCOMMAND = 'create';
export const sitesCreateSubcommand = async (
- args: string[],
- remotionRoot: string
+ args: string[],
+ remotionRoot: string
) => {
- const { file, reason } = CliInternals.findEntryPoint(args, remotionRoot);
- if (!file) {
- Log.error("No entry file passed.");
- Log.info(
- "Pass an additional argument specifying the entry file of your Remotion project:"
- );
- Log.info();
- Log.info(`${BINARY_NAME} deploy <entry-file.ts>`);
- quit(1);
- return;
- }
-
- Log.verbose("Entry point:", file, "Reason:", reason);
-
- const absoluteFile = path.join(process.cwd(), file);
- if (!existsSync(absoluteFile)) {
- Log.error(
- `No file exists at ${absoluteFile}. Make sure the path exists and try again.`
- );
- quit(1);
- }
-
- if (lstatSync(absoluteFile).isDirectory()) {
- Log.error(
- `You passed a path ${absoluteFile} but it is a directory. Pass a file instead.`
- );
- quit(1);
- }
-
- const desiredSiteName = parsedGcpCli["site-name"] ?? undefined;
- if (desiredSiteName !== undefined) {
- validateSiteName(desiredSiteName);
- }
-
- const progressBar = CliInternals.createOverwriteableCliOutput(
- CliInternals.quietFlagProvided()
- );
-
- const multiProgress: {
- bundleProgress: BundleProgress;
- bucketProgress: BucketCreationProgress;
- deployProgress: DeployToStorageProgress;
- } = {
- bundleProgress: {
- doneIn: null,
- progress: 0,
- },
- bucketProgress: {
- bucketCreated: false,
- doneIn: null,
- },
- deployProgress: {
- doneIn: null,
- totalSize: null,
- sizeUploaded: 0,
- stats: null,
- },
- };
-
- const updateProgress = () => {
- progressBar.update(
- [
- makeBundleProgress(multiProgress.bundleProgress),
- makeBucketProgress(multiProgress.bucketProgress),
- makeDeployProgressBar(multiProgress.deployProgress),
- ].join("\n")
- );
- };
-
- const bucketStart = Date.now();
-
- const { bucketName } = await getOrCreateBucket({
- region: getGcpRegion(),
- onBucketEnsured: () => {
- multiProgress.bucketProgress.bucketCreated = true;
- updateProgress();
- },
- });
-
- multiProgress.bucketProgress.doneIn = Date.now() - bucketStart;
- updateProgress();
-
- const bundleStart = Date.now();
-
- const { serveUrl, siteName, stats } = await deploySite({
- entryPoint: absoluteFile,
- siteName: desiredSiteName,
- bucketName,
- options: {
- onBundleProgress: (progress: number) => {
- multiProgress.bundleProgress = {
- progress,
- doneIn: progress === 100 ? Date.now() - bundleStart : null,
- };
- },
- onUploadProgress: (p) => {
- multiProgress.deployProgress = {
- sizeUploaded: p.sizeUploaded,
- totalSize: p.totalSize,
- doneIn: null,
- stats: null,
- };
- updateProgress();
- },
- enableCaching: ConfigInternals.getWebpackCaching(),
- webpackOverride: ConfigInternals.getWebpackOverrideFn() ?? ((f) => f),
- },
- });
-
- updateProgress();
-
- const uploadStart = Date.now();
-
- const uploadDuration = Date.now() - uploadStart;
- multiProgress.deployProgress = {
- sizeUploaded: 1,
- totalSize: 1,
- doneIn: uploadDuration,
- stats: {
- addedFiles: stats.uploadedFiles,
- removedFiles: stats.deletedFiles,
- untouchedFiles: stats.untouchedFiles,
- },
- };
- updateProgress();
-
- Log.info();
- Log.info();
- Log.info("Deployed to GCP Storage!");
-
- Log.info(`Serve URL: ${serveUrl}`);
- Log.info(`Site Name: ${siteName}`);
-
- Log.info();
- Log.info(
- CliInternals.chalk.blueBright(
- "ℹ️ If you make changes to your code, you need to redeploy the site. You can overwrite the existing site by running:"
- )
- );
- Log.info(
- CliInternals.chalk.blueBright(
- ["npx remotion gcp sites create", args[0], `--site-name=${siteName}`]
- .filter(Internals.truthy)
- .join(" ")
- )
- );
+ const {file, reason} = CliInternals.findEntryPoint(args, remotionRoot);
+ if (!file) {
+ Log.error('No entry file passed.');
+ Log.info(
+ 'Pass an additional argument specifying the entry file of your Remotion project:'
+ );
+ Log.info();
+ Log.info(`${BINARY_NAME} deploy <entry-file.ts>`);
+ quit(1);
+ return;
+ }
+
+ Log.verbose('Entry point:', file, 'Reason:', reason);
+
+ const absoluteFile = path.join(process.cwd(), file);
+ if (!existsSync(absoluteFile)) {
+ Log.error(
+ `No file exists at ${absoluteFile}. Make sure the path exists and try again.`
+ );
+ quit(1);
+ }
+
+ if (lstatSync(absoluteFile).isDirectory()) {
+ Log.error(
+ `You passed a path ${absoluteFile} but it is a directory. Pass a file instead.`
+ );
+ quit(1);
+ }
+
+ const desiredSiteName = parsedGcpCli['site-name'] ?? undefined;
+ if (desiredSiteName !== undefined) {
+ validateSiteName(desiredSiteName);
+ }
+
+ const progressBar = CliInternals.createOverwriteableCliOutput(
+ CliInternals.quietFlagProvided()
+ );
+
+ const multiProgress: {
+ bundleProgress: BundleProgress;
+ bucketProgress: BucketCreationProgress;
+ deployProgress: DeployToStorageProgress;
+ } = {
+ bundleProgress: {
+ doneIn: null,
+ progress: 0,
+ },
+ bucketProgress: {
+ bucketCreated: false,
+ doneIn: null,
+ },
+ deployProgress: {
+ doneIn: null,
+ totalSize: null,
+ sizeUploaded: 0,
+ stats: null,
+ },
+ };
+
+ const updateProgress = () => {
+ progressBar.update(
+ [
+ makeBundleProgress(multiProgress.bundleProgress),
+ makeBucketProgress(multiProgress.bucketProgress),
+ makeDeployProgressBar(multiProgress.deployProgress),
+ ].join('\n')
+ );
+ };
+
+ const bucketStart = Date.now();
+
+ const {bucketName} = await getOrCreateBucket({
+ region: getGcpRegion(),
+ onBucketEnsured: () => {
+ multiProgress.bucketProgress.bucketCreated = true;
+ updateProgress();
+ },
+ });
+
+ multiProgress.bucketProgress.doneIn = Date.now() - bucketStart;
+ updateProgress();
+
+ const bundleStart = Date.now();
+
+ const {serveUrl, siteName, stats} = await deploySite({
+ entryPoint: absoluteFile,
+ siteName: desiredSiteName,
+ bucketName,
+ options: {
+ onBundleProgress: (progress: number) => {
+ multiProgress.bundleProgress = {
+ progress,
+ doneIn: progress === 100 ? Date.now() - bundleStart : null,
+ };
+ },
+ onUploadProgress: (p) => {
+ multiProgress.deployProgress = {
+ sizeUploaded: p.sizeUploaded,
+ totalSize: p.totalSize,
+ doneIn: null,
+ stats: null,
+ };
+ updateProgress();
+ },
+ enableCaching: ConfigInternals.getWebpackCaching(),
+ webpackOverride: ConfigInternals.getWebpackOverrideFn() ?? ((f) => f),
+ },
+ });
+
+ updateProgress();
+
+ const uploadStart = Date.now();
+
+ const uploadDuration = Date.now() - uploadStart;
+ multiProgress.deployProgress = {
+ sizeUploaded: 1,
+ totalSize: 1,
+ doneIn: uploadDuration,
+ stats: {
+ addedFiles: stats.uploadedFiles,
+ removedFiles: stats.deletedFiles,
+ untouchedFiles: stats.untouchedFiles,
+ },
+ };
+ updateProgress();
+
+ Log.info();
+ Log.info();
+ Log.info('Deployed to GCP Storage!');
+
+ Log.info(`Serve URL: ${serveUrl}`);
+ Log.info(`Site Name: ${siteName}`);
+
+ Log.info();
+ Log.info(
+ CliInternals.chalk.blueBright(
+ 'ℹ️ If you make changes to your code, you need to redeploy the site. You can overwrite the existing site by running:'
+ )
+ );
+ Log.info(
+ CliInternals.chalk.blueBright(
+ ['npx remotion gcp sites create', args[0], `--site-name=${siteName}`]
+ .filter(Internals.truthy)
+ .join(' ')
+ )
+ );
};
diff --git a/packages/gcp/src/cli/commands/sites/index.ts b/packages/gcp/src/cli/commands/sites/index.ts
index 49357cfaba..cd90376513 100644
--- a/packages/gcp/src/cli/commands/sites/index.ts
+++ b/packages/gcp/src/cli/commands/sites/index.ts
@@ -1,8 +1,8 @@
import {CliInternals} from '@remotion/cli';
import {Log} from '@remotion/cli/dist/log';
+import {BINARY_NAME} from '../../../shared/constants';
import {quit} from '../../helpers/quit';
import {sitesCreateSubcommand, SITES_CREATE_SUBCOMMAND} from './create';
-import {BINARY_NAME} from '../../../shared/constants';
export const SITES_COMMAND = 'sites';
@@ -11,10 +11,10 @@ const printSitesHelp = () => {
Log.info();
Log.info('Available subcommands:');
Log.info('');
+ Log.info(`${BINARY_NAME} ${SITES_COMMAND} ${SITES_CREATE_SUBCOMMAND}`);
Log.info(
- `${BINARY_NAME} ${SITES_COMMAND} ${SITES_CREATE_SUBCOMMAND}`
+ CliInternals.chalk.gray('Creates a new site based on a Remotion project')
);
- Log.info(CliInternals.chalk.gray('Creates a new site based on a Remotion project'));
};
// TODO: Add LS, RM, RMALL subcommands
diff --git a/packages/gcp/src/cli/helpers/confirm.ts b/packages/gcp/src/cli/helpers/confirm.ts
index 1ab96960f7..c16245df56 100644
--- a/packages/gcp/src/cli/helpers/confirm.ts
+++ b/packages/gcp/src/cli/helpers/confirm.ts
@@ -1,7 +1,7 @@
import {forceFlagProvided} from '../args';
import {yesOrNo} from './yes-or-no';
-export const confirmCli = async ({
+export const confirmCli = ({
delMessage,
allowForceFlag,
}: {
@@ -12,5 +12,5 @@ export const confirmCli = async ({
return true;
}
- return await yesOrNo({question: delMessage, defaultValue: true});
+ return yesOrNo({question: delMessage, defaultValue: true});
};
diff --git a/packages/gcp/src/functions/helpers/get-composition-from-body.ts b/packages/gcp/src/functions/helpers/get-composition-from-body.ts
index 82e1b77cb2..dc27700bcd 100644
--- a/packages/gcp/src/functions/helpers/get-composition-from-body.ts
+++ b/packages/gcp/src/functions/helpers/get-composition-from-body.ts
@@ -1,12 +1,15 @@
-import { getCompositions } from '@remotion/renderer';
+import {getCompositions} from '@remotion/renderer';
-export const getCompositionFromBody = async (serveUrl: string, compositionName: string) => {
+export const getCompositionFromBody = async (
+ serveUrl: string,
+ compositionName: string
+) => {
const comps = await getCompositions(serveUrl);
const composition = comps.find((comp) => comp.id === compositionName);
- if (!composition) {
- throw new Error(`Composition not found: ${compositionName}`);
- } else {
- return composition;
- }
-};
\ No newline at end of file
+ if (composition) {
+ return composition;
+ }
+
+ throw new Error(`Composition not found: ${compositionName}`);
+};
diff --git a/packages/gcp/src/functions/helpers/io.ts b/packages/gcp/src/functions/helpers/io.ts
index eb3945eb49..5b30265f37 100644
--- a/packages/gcp/src/functions/helpers/io.ts
+++ b/packages/gcp/src/functions/helpers/io.ts
@@ -1,5 +1,5 @@
-import { getCloudStorageClient } from '../../api/helpers/get-cloud-storage-client';
-import { File } from '@google-cloud/storage';
+import type {File} from '@google-cloud/storage';
+import {getCloudStorageClient} from '../../api/helpers/get-cloud-storage-client';
export type GcpLSInput = {
bucketName: string;
@@ -9,29 +9,22 @@ export type GcpLsReturnType = Promise<File[]>;
export const gcpLs = async ({
bucketName,
- prefix
+ prefix,
}: GcpLSInput): GcpLsReturnType => {
- try {
- const cloudStorageClient = getCloudStorageClient()
- const [files] = await cloudStorageClient.bucket(bucketName).getFiles({ prefix, autoPaginate: true });
- return files;
- } catch (err) {
- throw err;
- }
+ const cloudStorageClient = getCloudStorageClient();
+ const [files] = await cloudStorageClient
+ .bucket(bucketName)
+ .getFiles({prefix, autoPaginate: true});
+ return files;
};
export const gcpDeleteFile = async ({
bucketName,
- key
+ key,
}: {
bucketName: string;
key: string;
}) => {
- try {
- const cloudStorageClient = getCloudStorageClient()
- await cloudStorageClient.bucket(bucketName).file(key).delete();
- } catch (err) {
- throw err;
- }
-}
-
+ const cloudStorageClient = getCloudStorageClient();
+ await cloudStorageClient.bucket(bucketName).file(key).delete();
+};
diff --git a/packages/gcp/src/functions/index.ts b/packages/gcp/src/functions/index.ts
index 59daae3169..89e1d473cb 100644
--- a/packages/gcp/src/functions/index.ts
+++ b/packages/gcp/src/functions/index.ts
@@ -1,20 +1,22 @@
-import * as ff from '@google-cloud/functions-framework';
-import { renderMediaSingleThread } from "./render-media-single-thread";
-import { renderStillSingleThread } from "./render-still-single-thread";
+import type * as ff from '@google-cloud/functions-framework';
+import {renderMediaSingleThread} from './render-media-single-thread';
+import {renderStillSingleThread} from './render-still-single-thread';
const renderOnCloudRun = async (req: ff.Request, res: ff.Response) => {
- const renderType = req.body.type;
+ const renderType = req.body.type;
- switch (renderType) {
- case 'media':
- await renderMediaSingleThread(req, res);
- break;
- case 'still':
- await renderStillSingleThread(req, res);
- break;
- default:
- res.status(400).send('Invalid render type, must be either "media" or "still"');
- }
+ switch (renderType) {
+ case 'media':
+ await renderMediaSingleThread(req, res);
+ break;
+ case 'still':
+ await renderStillSingleThread(req, res);
+ break;
+ default:
+ res
+ .status(400)
+ .send('Invalid render type, must be either "media" or "still"');
+ }
};
-export { renderOnCloudRun }
\ No newline at end of file
+export {renderOnCloudRun};
diff --git a/packages/gcp/src/functions/render-media-single-thread.ts b/packages/gcp/src/functions/render-media-single-thread.ts
index 888dc343ae..fb72903fd2 100644
--- a/packages/gcp/src/functions/render-media-single-thread.ts
+++ b/packages/gcp/src/functions/render-media-single-thread.ts
@@ -1,9 +1,9 @@
-import * as ff from '@google-cloud/functions-framework';
-import { getCompositionFromBody } from './helpers/get-composition-from-body';
-import { renderMedia } from '@remotion/renderer';
-import { Storage } from '@google-cloud/storage';
+import type * as ff from '@google-cloud/functions-framework';
+import {Storage} from '@google-cloud/storage';
+import {renderMedia} from '@remotion/renderer';
+import {getCompositionFromBody} from './helpers/get-composition-from-body';
-{/*
+/*
example JSON body: {
"composition": "HelloWorld",
"serveUrl": "https://remotionlambda-11kow3vq6f.s3.us-east-1.amazonaws.com/sites/xmycbufjs3/index.html",
@@ -15,25 +15,33 @@ import { Storage } from '@google-cloud/storage';
"outputBucket": "remotionlambda-test",
"outputFile": "outFolder/mediaOutput.mp4"
}
-*/}
+*/
-export const renderMediaSingleThread = async (req: ff.Request, res: ff.Response) => {
- const composition = await getCompositionFromBody(req.body.serveUrl, req.body.composition);
+export const renderMediaSingleThread = async (
+ req: ff.Request,
+ res: ff.Response
+) => {
+ const composition = await getCompositionFromBody(
+ req.body.serveUrl,
+ req.body.composition
+ );
- const tempFilePath = '/tmp/output.mp4'
+ const tempFilePath = '/tmp/output.mp4';
await renderMedia({
- composition: composition,
- serveUrl: req.body.serveUrl,
- codec: req.body.codec,
- outputLocation: tempFilePath,
+ composition,
+ serveUrl: req.body.serveUrl,
+ codec: req.body.codec,
+ outputLocation: tempFilePath,
inputProps: req.body.inputProps,
- });
+ });
const storage = new Storage();
- await storage.bucket(req.body.outputBucket).upload(tempFilePath, { destination: req.body.outputFile });
+ await storage
+ .bucket(req.body.outputBucket)
+ .upload(tempFilePath, {destination: req.body.outputFile});
console.log('output uploaded to ', req.body.outputBucket);
res.send('OK');
-};
\ No newline at end of file
+};
diff --git a/packages/gcp/src/functions/render-still-single-thread.ts b/packages/gcp/src/functions/render-still-single-thread.ts
index 9fd4464052..f3a46df8a0 100644
--- a/packages/gcp/src/functions/render-still-single-thread.ts
+++ b/packages/gcp/src/functions/render-still-single-thread.ts
@@ -1,9 +1,9 @@
-import * as ff from '@google-cloud/functions-framework';
-import { getCompositionFromBody } from './helpers/get-composition-from-body';
-import { renderStill } from '@remotion/renderer';
-import { Storage } from '@google-cloud/storage';
+import type * as ff from '@google-cloud/functions-framework';
+import {Storage} from '@google-cloud/storage';
+import {renderStill} from '@remotion/renderer';
+import {getCompositionFromBody} from './helpers/get-composition-from-body';
-{/*
+/*
example JSON body: {
"composition": "StillRender",
"serveUrl": "https://remotionlambda-11kow3vq6f.s3.us-east-1.amazonaws.com/sites/xmycbufjs3/index.html",
@@ -13,25 +13,33 @@ import { Storage } from '@google-cloud/storage';
"outputBucket": "remotionlambda-test",
"outputFile": "outFolder/stillOutput.png"
}
-*/}
+*/
-export const renderStillSingleThread = async (req: ff.Request, res: ff.Response) => {
- const composition = await getCompositionFromBody(req.body.serveUrl, req.body.composition);
+export const renderStillSingleThread = async (
+ req: ff.Request,
+ res: ff.Response
+) => {
+ const composition = await getCompositionFromBody(
+ req.body.serveUrl,
+ req.body.composition
+ );
- const tempFilePath = '/tmp/still.png'
+ const tempFilePath = '/tmp/still.png';
await renderStill({
- composition: composition,
- serveUrl: req.body.serveUrl,
+ composition,
+ serveUrl: req.body.serveUrl,
output: tempFilePath,
inputProps: req.body.inputProps,
});
const storage = new Storage();
- await storage.bucket(req.body.outputBucket).upload(tempFilePath, { destination: req.body.outputFile });
+ await storage
+ .bucket(req.body.outputBucket)
+ .upload(tempFilePath, {destination: req.body.outputFile});
console.log('output uploaded to ', req.body.outputBucket);
res.send('OK');
-};
\ No newline at end of file
+};
diff --git a/packages/gcp/src/shared/get-etag.ts b/packages/gcp/src/shared/get-etag.ts
index aa23c64d02..015922e24a 100644
--- a/packages/gcp/src/shared/get-etag.ts
+++ b/packages/gcp/src/shared/get-etag.ts
@@ -1,5 +1,5 @@
-import fs from 'fs';
import crypto from 'crypto';
+import fs from 'fs';
const chunk = 1024 * 1024 * 5; // 5MB
diff --git a/packages/gcp/src/shared/get-storage-operations.ts b/packages/gcp/src/shared/get-storage-operations.ts
index 3744409f4e..be23f4b0e9 100644
--- a/packages/gcp/src/shared/get-storage-operations.ts
+++ b/packages/gcp/src/shared/get-storage-operations.ts
@@ -1,4 +1,4 @@
-import { File } from '@google-cloud/storage';
+import type {File} from '@google-cloud/storage';
import {readDirectory} from './read-dir';
export const getStorageDiffOperations = async ({
diff --git a/packages/gcp/src/shared/make-storage-key.ts b/packages/gcp/src/shared/make-storage-key.ts
index 14cbf78d58..0c2f65c356 100644
--- a/packages/gcp/src/shared/make-storage-key.ts
+++ b/packages/gcp/src/shared/make-storage-key.ts
@@ -1,5 +1,9 @@
import path from 'path';
-export const makeStorageKey = (folder: string, dir: string, filePath: string) => {
+export const makeStorageKey = (
+ folder: string,
+ dir: string,
+ filePath: string
+) => {
return `${folder}/${path.relative(dir, filePath).split(path.sep).join('/')}`;
};
diff --git a/packages/gcp/src/shared/make-storage-url.ts b/packages/gcp/src/shared/make-storage-url.ts
index 4d18f35a0d..ddefc1f825 100644
--- a/packages/gcp/src/shared/make-storage-url.ts
+++ b/packages/gcp/src/shared/make-storage-url.ts
@@ -1,9 +1,9 @@
export const makeStorageServeUrl = ({
- bucketName,
- subFolder,
+ bucketName,
+ subFolder,
}: {
- bucketName: string;
- subFolder: string;
+ bucketName: string;
+ subFolder: string;
}): string => {
- return `https://storage.googleapis.com/${bucketName}/${subFolder}/index.html`;
+ return `https://storage.googleapis.com/${bucketName}/${subFolder}/index.html`;
};
diff --git a/packages/gcp/src/shared/validate-overwrite.ts b/packages/gcp/src/shared/validate-overwrite.ts
index 68a15f15c5..26bb3b7a4b 100644
--- a/packages/gcp/src/shared/validate-overwrite.ts
+++ b/packages/gcp/src/shared/validate-overwrite.ts
@@ -1,5 +1,9 @@
export const validateOverwrite = (overwriteService: unknown) => {
- if (overwriteService !== true && overwriteService !== false && overwriteService !== 'undefined') {
+ if (
+ overwriteService !== true &&
+ overwriteService !== false &&
+ overwriteService !== 'undefined'
+ ) {
throw new TypeError(
`The 'overwrite-service' argument must be either true or false, or not included, but is ${JSON.stringify(
overwriteService
diff --git a/packages/gcp/src/shared/validate-remotion-version.ts b/packages/gcp/src/shared/validate-remotion-version.ts
index 7b08dd3065..fc06f823d6 100644
--- a/packages/gcp/src/shared/validate-remotion-version.ts
+++ b/packages/gcp/src/shared/validate-remotion-version.ts
@@ -1,4 +1,3 @@
export const validateRemotionVersion = (remotionVersion: unknown) => {
// TODO - ensure the image exists at us-docker.pkg.dev/remotion-dev/cloud-run/render:${remotionVersion}
- return
};