Skip to content

🎥 Make videos programmatically with React

use swangel

Jonny Burger442e0f4fe312
diff --git a/packages/lambda/src/functions/helpers/get-browser-instance.ts b/packages/lambda/src/functions/helpers/get-browser-instance.ts
index ef20874755..df017d94f6 100644
--- a/packages/lambda/src/functions/helpers/get-browser-instance.ts
+++ b/packages/lambda/src/functions/helpers/get-browser-instance.ts
@@ -44,8 +44,9 @@ export const getBrowserInstance = async (
const execPath = await executablePath();
const actualChromiumOptions: ChromiumOptions = {
- gl: 'swangle',
...chromiumOptions,
+ // Override the `null` value, which might come from CLI with swANGLE
+ gl: chromiumOptions.gl ?? 'swangle',
};
console.log({actualChromiumOptions});