🎥 Make videos programmatically with React
move errorWriting function. Add name to err payload
Matt McGillivray85fbb86422b9
diff --git a/packages/cloudrun/src/functions/helpers/payloads.ts b/packages/cloudrun/src/functions/helpers/payloads.tsindex 48697a333a..d0c0a134ab 100644--- a/packages/cloudrun/src/functions/helpers/payloads.ts+++ b/packages/cloudrun/src/functions/helpers/payloads.ts@@ -74,6 +74,7 @@ export const CloudRunPayload = z.discriminatedUnion('type', [const renderFailResponsePayload = z.object({type: z.literal('error'),message: z.string(),+ name: z.string(),stack: z.string(),});diff --git a/packages/cloudrun/src/functions/write-cloudrun-error.ts b/packages/cloudrun/src/functions/helpers/write-cloudrun-error.tssimilarity index 100%rename from packages/cloudrun/src/functions/write-cloudrun-error.tsrename to packages/cloudrun/src/functions/helpers/write-cloudrun-error.tsdiff --git a/packages/cloudrun/src/functions/index.ts b/packages/cloudrun/src/functions/index.tsindex c506c84e38..cea6fd1b2b 100644--- a/packages/cloudrun/src/functions/index.ts+++ b/packages/cloudrun/src/functions/index.ts@@ -27,6 +27,7 @@ const renderOnCloudRun = async (req: ff.Request, res: ff.Response) => {const response: ErrorResponsePayload = {type: 'error',message: (err as Error).message,+ name: (err as Error).name,stack: (err as Error).stack as string,};res.write(JSON.stringify(response));diff --git a/packages/cloudrun/src/functions/render-media-single-thread.ts b/packages/cloudrun/src/functions/render-media-single-thread.tsindex e92593d181..8c8f9f4f49 100644--- a/packages/cloudrun/src/functions/render-media-single-thread.ts+++ b/packages/cloudrun/src/functions/render-media-single-thread.ts@@ -9,7 +9,7 @@ import type {CloudRunPayloadType,RenderMediaOnCloudrunOutput,} from './helpers/payloads';-import {writeCloudrunError} from './write-cloudrun-error';+import {writeCloudrunError} from './helpers/write-cloudrun-error';export const renderMediaSingleThread = async (body: CloudRunPayloadType,diff --git a/packages/cloudrun/src/gcpInstaller/gcpInstaller.tar b/packages/cloudrun/src/gcpInstaller/gcpInstaller.tarindex 9cbb01a9d0..2d5cb5260c 100644Binary files a/packages/cloudrun/src/gcpInstaller/gcpInstaller.tar and b/packages/cloudrun/src/gcpInstaller/gcpInstaller.tar differ