🎥 Make videos programmatically with React
document public dir
Jonny Burger318b2038d7e0
diff --git a/packages/docs/docs/bundle.md b/packages/docs/docs/bundle.mdindex 780cd8bc89..17b0328112 100644--- a/packages/docs/docs/bundle.md+++ b/packages/docs/docs/bundle.md@@ -16,6 +16,8 @@ const bundle: (outDir?: string;enableCaching?: boolean;publicPath?: string;+ rootDir?: string;+ publicDir?: string | null;}) => Promise<string>;```@@ -85,6 +87,12 @@ 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.:::+#### `publicDir?`++_Available from v3.2.13_++TODO!!!+## Return valueA promise which will resolve into a `string` specifying the output directory.diff --git a/packages/docs/docs/cli/compositions.md b/packages/docs/docs/cli/compositions.mdindex 4fac794239..86df9f4f80 100644--- a/packages/docs/docs/cli/compositions.md+++ b/packages/docs/docs/cli/compositions.md@@ -45,6 +45,12 @@ If you don't feel like passing command line flags every time, consider creating[Set a custom HTTP server port to host the Webpack bundle](/docs/config#setPort). If not defined, Remotion will try to find a free port.+### `--public-dir`++_Available from v3.2.13_++[Define the location of the `public/` directory.](/docs/config#setpublicdir). If not defined, Remotion will assume the location is the `public` folder in your Remotion root.+### `--ffmpeg-executable`[Set a custom `ffmpeg` executable](/docs/config#setFfmpegExecutable). If not defined, a `ffmpeg` executable will be searched in `PATH`.diff --git a/packages/docs/docs/cli/preview.md b/packages/docs/docs/cli/preview.mdindex 528b249ecc..ab1a0ba2d9 100644--- a/packages/docs/docs/cli/preview.md+++ b/packages/docs/docs/cli/preview.md@@ -35,6 +35,12 @@ Specify a location for a dotenv file. Default `.env`. Available in v2.2 and late[Set a custom HTTP server port](/docs/config#setPort). If not defined, Remotion will try to find a free port.+### `--public-dir`++_Available from v3.2.13_++[Define the location of the `public/` directory.](/docs/config#setpublicdir). If not defined, Remotion will assume the location is the `public` folder in your Remotion root.+### `--disable-keyboard-shortcuts`_Available from v3.2.11_diff --git a/packages/docs/docs/cli/render.md b/packages/docs/docs/cli/render.mdindex 1582eb8a9e..f3dd0eadfc 100644--- a/packages/docs/docs/cli/render.md+++ b/packages/docs/docs/cli/render.md@@ -115,7 +115,13 @@ _available from v3.1_### `--port`-[Set a custom HTTP server port that will be used to host the Webpack bundle](/docs/config#setPort). If not defined, Remotion will try to find a free port.+[Set a custom HTTP server port that will be used to host the Webpack bundle](/docs/config#setport). If not defined, Remotion will try to find a free port.++### `--public-dir`++_Available from v3.2.13_++[Define the location of the `public/` directory.](/docs/config#setpublicdir). If not defined, Remotion will assume the location is the `public` folder in your Remotion root.### `--ffmpeg-executable`diff --git a/packages/docs/docs/cli/still.md b/packages/docs/docs/cli/still.mdindex fda9951f35..03703e0098 100644--- a/packages/docs/docs/cli/still.md+++ b/packages/docs/docs/cli/still.md@@ -67,6 +67,12 @@ Which frame should be rendered. Example `--frame=10`. Default `0`.[Set a custom HTTP server port to serve the Webpack bundle](/docs/config#setPort). If not defined, Remotion will try to find a free port.+### `--public-dir`++_Available from v3.2.13_++[Define the location of the `public/` directory.](/docs/config#setpublicdir). If not defined, Remotion will assume the location is the `public` folder in your Remotion root.+### `--ffmpeg-executable`[Set a custom `ffmpeg` executable](/docs/config#setFfmpegExecutable). If not defined, a `ffmpeg` executable will be searched in `PATH`.diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.mdindex 00c9f048da..5f3ca46c54 100644--- a/packages/docs/docs/config.md+++ b/packages/docs/docs/config.md@@ -69,6 +69,22 @@ Config.Bundling.setPort(3003);The [command line flag](/docs/cli/render#--port) `--port` will take precedence over this option.+### setPublicDir()++_Available from v3.2.13_++Define the location of the `public/` directory.+By default it is a folder named "public" inside the current working directory.+You can either set an absolute path, or a relative path that will be resolved from the closest package.json location.++```ts twoslash+import { Config } from "remotion";+// ---cut---+Config.Bundling.setPublicDir("./publico");+```++The [command line flag](/docs/cli/render#--public-dir) `--public-dir` will take precedence over this option.+## Log### setLevel()