🎥 Make videos programmatically with React
add ignoreregisterrootwarning as an option
Jonny Burgerd4d94ee295aa
diff --git a/packages/docs/docs/lambda/deploysite.md b/packages/docs/docs/lambda/deploysite.mdindex a0557c968e..b9b1dc6f29 100644--- a/packages/docs/docs/lambda/deploysite.md+++ b/packages/docs/docs/lambda/deploysite.md@@ -117,6 +117,10 @@ The directory in which the Remotion project is rooted in. This should be set toThe current working directory is the directory from which your program gets executed from. It is not the same as the file where bundle() gets called.:::+#### `ignoreRegisterRootWarning?` <AvailableFrom v="3.3.55" />++Ignore an error that gets thrown if you pass an entry point file which does not contain `registerRoot`.+## Return valueAn object with the following values:diff --git a/packages/lambda/src/api/deploy-site.ts b/packages/lambda/src/api/deploy-site.tsindex 8d752599e4..6a32d7a649 100644--- a/packages/lambda/src/api/deploy-site.ts+++ b/packages/lambda/src/api/deploy-site.ts@@ -23,6 +23,7 @@ export type DeploySiteInput = {onBundleProgress?: (progress: number) => void;onUploadProgress?: (upload: UploadDirProgress) => void;webpackOverride?: WebpackOverrideFn;+ ignoreRegisterRootWarning?: boolean;enableCaching?: boolean;publicDir?: string | null;rootDir?: string;@@ -84,12 +85,15 @@ export const deploySite = async ({region,prefix: subFolder,}),- bundleSite(entryPoint, options?.onBundleProgress ?? (() => undefined), {+ bundleSite({publicPath: `/${subFolder}/`,webpackOverride: options?.webpackOverride ?? ((f) => f),enableCaching: options?.enableCaching ?? true,publicDir: options?.publicDir,rootDir: options?.rootDir,+ ignoreRegisterRootWarning: options?.ignoreRegisterRootWarning,+ onProgress: options?.onBundleProgress ?? (() => undefined),+ entryPoint,}),]);