🎥 Make videos programmatically with React
Docs: Mention webpackOverride anywhere bundle() is used
Jonny Burgerfa660c7a889f
diff --git a/packages/docs/docs/bundle.mdx b/packages/docs/docs/bundle.mdxindex 4269f09ce1..14febff930 100644--- a/packages/docs/docs/bundle.mdx+++ b/packages/docs/docs/bundle.mdx@@ -24,6 +24,8 @@ import { bundle } from "@remotion/bundler";const serveUrl = await bundle({entryPoint: path.join(process.cwd(), "./src/index.ts"),+ // If you have a webpack override in remotion.config.ts, pass it here as well.+ webpackOverride: (config) => config,});```@@ -76,7 +78,7 @@ A `boolean` specifying whether Webpack caching should be enabled. Default `true`_optional_-<Options id="public-path"/>+<Options id="public-path" />### `rootDir?`<AvailableFrom v="3.1.6" />diff --git a/packages/docs/docs/dataset-render.mdx b/packages/docs/docs/dataset-render.mdxindex 833829e178..44f7756bdd 100644--- a/packages/docs/docs/dataset-render.mdx+++ b/packages/docs/docs/dataset-render.mdx@@ -284,7 +284,7 @@ const compositionId = "MyComp";const bundleLocation = await bundle({entryPoint: "./src/index.ts",- // If you have a webpack override, don't forget to add it+ // If you have a webpack override in remotion.config.ts, pass it here as well.webpackOverride: webpackOverride,});diff --git a/packages/docs/docs/docker.mdx b/packages/docs/docs/docker.mdxindex 03423395d5..3be868e2e3 100644--- a/packages/docs/docs/docker.mdx+++ b/packages/docs/docs/docker.mdx@@ -40,7 +40,8 @@ This Dockerfile is unable to render WebGL content. Suggestions on how to improve## Line-by-line<p>-<Step>1</Step> Specify the base image for the Dockerfile. In this case, we use Debian.+ <Step>1</Step> Specify the base image for the Dockerfile. In this case, we use+ Debian.</p>```docker@@ -48,7 +49,7 @@ FROM debian:bookworm```<p>-<Step>2</Step> Update the package lists on the Debian system.+ <Step>2</Step> Update the package lists on the Debian system.</p>```docker@@ -56,7 +57,8 @@ RUN apt-get update```<p>-<Step>3</Step> Download Remotion's dependencies: Node.JS (with NPM) and Chromium.+ <Step>3</Step> Download Remotion's dependencies: Node.JS (with NPM) and+ Chromium.</p>```docker@@ -64,8 +66,12 @@ RUN apt-get install -y nodejs npm chromium```<p>-<Step>4</Step> Copy the files from your project. If you have additional source files, add them here. If some files do not exist, remove them.-The <code>COPY</code> syntax allows multiple files, but at least one file must exist. It is assumed <code>package.json</code>, <code>src</code> and <code>public</code> exist in your project, but you can adjust this to your needs.+ <Step>4</Step> Copy the files from your project. If you have additional source+ files, add them here. If some files do not exist, remove them. The{" "}+ <code>COPY</code> syntax allows multiple files, but at least one file must+ exist. It is assumed <code>package.json</code>, <code>src</code> and{" "}+ <code>public</code> exist in your project, but you can adjust this to your+ needs.</p>```docker@@ -75,7 +81,7 @@ COPY public ./public```<p>-<Step>5</Step> Install the right package manager and dependencies.+ <Step>5</Step> Install the right package manager and dependencies.</p>- If you use NPM, put the following in your Dockerfile:@@ -97,7 +103,7 @@ COPY public ./public```<p>-<Step>6</Step> Run your code. It can be a CLI command or a Node.JS app.+ <Step>6</Step> Run your code. It can be a CLI command or a Node.JS app.</p>```docker@@ -120,7 +126,7 @@ const require = createRequire(import.meta.url);const bundled = await bundle({entryPoint: require.resolve("./src/index.ts"),- // If you have a Webpack override, make sure to import it here+ // If you have a webpack override in remotion.config.ts, pass it here as well.webpackOverride: (config) => config,});diff --git a/packages/docs/docs/ssr-node.mdx b/packages/docs/docs/ssr-node.mdxindex 6b107a143b..51337740cc 100644--- a/packages/docs/docs/ssr-node.mdx+++ b/packages/docs/docs/ssr-node.mdx@@ -35,7 +35,7 @@ const compositionId = "HelloWorld";// for multiple renders that you can parametrize using input props.const bundleLocation = await bundle({entryPoint: path.resolve("./src/index.ts"),- // If you have a Webpack override, make sure to add it here+ // If you have a webpack override in remotion.config.ts, pass it here as well.webpackOverride: (config) => config,});