🎥 Make videos programmatically with React
Update get-compositions.ts
Jonny Burger26c9b8f6fb36
diff --git a/packages/renderer/src/get-compositions.ts b/packages/renderer/src/get-compositions.tsindex 7b871d6578..961d994bfe 100644--- a/packages/renderer/src/get-compositions.ts+++ b/packages/renderer/src/get-compositions.ts@@ -13,11 +13,7 @@ export const getCompositions = async (const {port, close} = await serveStatic(webpackBundle);- await page.goto(- `http://localhost:${port}/index.html?evaluation=true&props=${encodeURIComponent(- JSON.stringify(config?.userProps || {})- )}`- );+ await page.goto(`http://localhost:${port}/index.html?evaluation=true`);await page.waitForFunction('window.ready === true');const result = await page.evaluate('window.getStaticCompositions()');await close();