Skip to content

🎥 Make videos programmatically with React

More clearly signalize if browser got started successfully

Jonny Burger297711c85ee9
diff --git a/packages/lambda/src/functions/launch.ts b/packages/lambda/src/functions/launch.ts
index fd0003d758..e1a0dfc2ba 100644
--- a/packages/lambda/src/functions/launch.ts
+++ b/packages/lambda/src/functions/launch.ts
@@ -132,6 +132,13 @@ const innerLaunchHandler = async ({
logLevel: params.logLevel,
};
const serializedInputPropsWithCustomSchema = await inputPropsPromise;
+
+ RenderInternals.Log.infoAdvanced(
+ logOptions,
+ 'Waiting for browser to be ready:',
+ serializedInputPropsWithCustomSchema,
+ );
+ const {instance} = await browserInstance;
RenderInternals.Log.infoAdvanced(
logOptions,
'Validating composition, input props:',
@@ -140,7 +147,7 @@ const innerLaunchHandler = async ({
const comp = await validateComposition({
serveUrl: params.serveUrl,
composition: params.composition,
- browserInstance: (await browserInstance).instance,
+ browserInstance: instance,
serializedInputPropsWithCustomSchema,
envVariables: params.envVariables ?? {},
timeoutInMilliseconds: params.timeoutInMilliseconds,