Skip to content

🎥 Make videos programmatically with React

document publicPath option for bundl

Jonny Burger7af0ee94bb39
diff --git a/packages/docs/docs/bundle.md b/packages/docs/docs/bundle.md
index 65886ce9c1..375860a3ca 100644
--- a/packages/docs/docs/bundle.md
+++ b/packages/docs/docs/bundle.md
@@ -15,6 +15,7 @@ const bundle: (
webpackOverride?: WebpackOverrideFn;
outDir?: string;
enableCaching?: boolean;
+ publicPath?: string;
}
) => Promise<string>;
```
@@ -68,6 +69,12 @@ _optional_
A `boolean` specifying whether Webpack caching should be enabled. Default `true`, it is recommended to leave caching enabled at all times since file changes should be recognized by Webpack nonetheless.
+#### `publicPath?`
+
+_optional_
+
+The path of the URL where the bundle is going to be hosted. By default it is `/`, meaning that the bundle is going to be hosted at the root of the domain (e.g. `https://localhost:3000/`). In some cases like rendering on Lambda, the public path might be a subdirectory.
+
## Return value
A promise which will resolve into a `string` specifying the output directory.
diff --git a/packages/lambda/remotionlambda.zip b/packages/lambda/remotionlambda.zip
index 6afff36e8f..70f4c2729a 100644
Binary files a/packages/lambda/remotionlambda.zip and b/packages/lambda/remotionlambda.zip differ