🎥 Make videos programmatically with React
`remotion`: Accept `--timeout` flag for loading root component
Jonny Burger06eba8498021
diff --git a/packages/bundler/renderEntry.tsx b/packages/bundler/renderEntry.tsxindex 2213cbaed0..e585bfbff7 100644--- a/packages/bundler/renderEntry.tsx+++ b/packages/bundler/renderEntry.tsx@@ -188,10 +188,15 @@ const GetVideo: React.FC<{state: BundleState}> = ({state}) => {);};+const DEFAULT_ROOT_COMPONENT_TIMEOUT = 10000;+const waitForRootHandle = delayRender('Loading root component - See https://remotion.dev/docs/troubleshooting/loading-root-component if you experience a timeout',{- timeoutInMilliseconds: 10000,+ timeoutInMilliseconds:+ typeof window === 'undefined'+ ? DEFAULT_ROOT_COMPONENT_TIMEOUT+ : window.remotion_puppeteerTimeout ?? DEFAULT_ROOT_COMPONENT_TIMEOUT,},);