Skip to content

🎥 Make videos programmatically with React

call it disable headless

Jonny Burger2fee915d5534
diff --git a/packages/cli/src/parse-command-line.ts b/packages/cli/src/parse-command-line.ts
index df8ba17f19..c2afab97b7 100644
--- a/packages/cli/src/parse-command-line.ts
+++ b/packages/cli/src/parse-command-line.ts
@@ -40,7 +40,7 @@ export type CommandLineOptions = {
help: boolean;
port: number;
frame: string | number;
- headless: boolean;
+ ['disable-headless']: boolean;
gl: OpenGlRenderer;
};
@@ -87,7 +87,7 @@ export const parseCommandLine = (type: 'still' | 'sequence' | 'versions') => {
Config.Puppeteer.setChromiumIgnoreCertificateErrors(true);
}
- if (parsedCli.headless === false) {
+ if (parsedCli['disable-headless']) {
Config.Puppeteer.setChromiumHeadlessMode(false);
}
diff --git a/packages/docs/docs/chromium-flags.md b/packages/docs/docs/chromium-flags.md
index 16ac50642a..dfd86e0950 100644
--- a/packages/docs/docs/chromium-flags.md
+++ b/packages/docs/docs/chromium-flags.md
@@ -59,9 +59,9 @@ import { Config } from "remotion";
Config.Puppeteer.setChromiumIgnoreCertificateErrors(true);
```
-## `--headless`
+## `--disable-headless`
-By default `true`. Disabling it will open an actual Chrome window where you can see the render happen.
+Setting this flag will open an actual Chrome during render where you can see the render happen.
### Enabling in Node.JS APIs
@@ -69,7 +69,7 @@ In [`getCompositions()`](/docs/get-compositions), [`renderStill()`](/docs/render
### Enabling via CLI
-Pass [`--headless=false`](/docs/cli#headless) in a `remotion render` or `remotion still` command.
+Pass [`--disable-headless`](/docs/cli#--disable-headless) in a `remotion render` or `remotion still` command.
### Enabling via config file
diff --git a/packages/docs/docs/cli.md b/packages/docs/docs/cli.md
index 06d61ca2f1..9a7173183d 100644
--- a/packages/docs/docs/cli.md
+++ b/packages/docs/docs/cli.md
@@ -191,11 +191,11 @@ _available for `still`, `render` command_
This will most notably disable CORS in Chrome among other security features.
Available since v2.6.5.
-### `--headless`
+### `--disable-headless`
_available for `still`, `render` command_
-Enabled by default. Pass `--headless=false` to open an actual browser during rendering to observe the render.
+Opens an actual browser during rendering to observe the render.
Available since v2.6.5.
### `--gl`
diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.md
index f0476988b7..898ab6e61f 100644
--- a/packages/docs/docs/config.md
+++ b/packages/docs/docs/config.md
@@ -177,7 +177,7 @@ import { Config } from "remotion";
Config.Puppeteer.setChromiumHeadlessMode(false);
```
-The [command line flag](/docs/cli#--headless) `--headless` will take precedence over this option.
+The [command line flag](/docs/cli#--disable-headless) `--disable-headless` will take precedence over this option.
## Rendering